Change Names on upload?
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
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
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
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
Sorry, my bad.
I'm using the ant tasks for all RAM interactions.
-Chris
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
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
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
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" />
DOH!
Magic. Ta.
:oops:
-Chris
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
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>