It's all about the answers!

Ask a question

Change Names on upload?


Chris Graham (367914) | asked Nov 28 '11, 10:37 p.m.
Can we do it?

I have a file, X.doc that I am currently uploading into RAM, as X.doc.

Can I have the file X.doc, but upload it as Y.doc, as it appears in RAM?
So, that if any users download it, it is downloaded as Y.doc (they never know that it was ever called X.doc)?

What I am really looking to do is to drop in the version number of a release into the file name. But the above describes this more clearly.

-Chris

5 answers



permanent link
Sheehan Anderson (1.2k4) | answered Nov 29 '11, 9:48 a.m.
JAZZ DEVELOPER
Hi Chris

Are you uploading the file from your browser? We don't have the ability to do this in the web today. You would have to rename the file on your local system before uploading.

If you're uploading with an API (such as the rest API) you can modify the file name on upload. See https://jazz.net/wiki/bin/view/Main/RamRestApiMain#Add_an_artifact_to_the_asset

permanent link
Chris Graham (367914) | answered Nov 29 '11, 8:33 p.m.
Sorry, my bad.

I'm using the ant tasks for all RAM interactions.

-Chris

Hi Chris

Are you uploading the file from your browser? We don't have the ability to do this in the web today. You would have to rename the file on your local system before uploading.

If you're uploading with an API (such as the rest API) you can modify the file name on upload. See https://jazz.net/wiki/bin/view/Main/RamRestApiMain#Add_an_artifact_to_the_asset

permanent link
Chris Graham (367914) | answered Nov 29 '11, 11:58 p.m.
I can always rename or copy the file to the required name, and upload that.
I was just looking for a more elegant way of doing things.

-Chris

Sorry, my bad.

I'm using the ant tasks for all RAM interactions.

-Chris

Hi Chris

Are you uploading the file from your browser? We don't have the ability to do this in the web today. You would have to rename the file on your local system before uploading.

If you're uploading with an API (such as the rest API) you can modify the file name on upload. See https://jazz.net/wiki/bin/view/Main/RamRestApiMain#Add_an_artifact_to_the_asset

permanent link
Eric Bordeau (27632) | answered Nov 30 '11, 11:09 a.m.
JAZZ DEVELOPER
I'm using the ant tasks for all RAM interactions.


If you're using the artifact tag, you can set the name attribute. See http://publib.boulder.ibm.com/infocenter/ramhelp/v7r5m1/topic/com.ibm.ram.ant.doc/topics/artifact.html

// upload local file named foo.txt but name it bar.txt on the server

<ram:artifact file="foo.txt" name="bar.txt" />

permanent link
Chris Graham (367914) | answered Nov 30 '11, 7:06 p.m.
DOH!

Magic. Ta.

:oops:

-Chris

I'm using the ant tasks for all RAM interactions.


If you're using the artifact tag, you can set the name attribute. See http://publib.boulder.ibm.com/infocenter/ramhelp/v7r5m1/topic/com.ibm.ram.ant.doc/topics/artifact.html

// upload local file named foo.txt but name it bar.txt on the server

<ram>

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.