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 |
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 |
Sorry, my bad.
I'm using the ant tasks for all RAM interactions. -Chris Hi Chris |
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. Hi 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 |
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 |
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.