myexperiment-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Myexperiment-discuss] Download filenames and _12345.xml


From: Stuart Owen
Subject: [Myexperiment-discuss] Download filenames and _12345.xml
Date: Wed, 17 Jun 2009 14:30:40 +0100
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

Hi,
I noticed today that when I download a workflow it has a magic number appended to it, e.g. example_of_a_conditional_execution_workflow_7882.xml . This seems to be to avoid a clash between files with the same name, but can be overcome by storing the original filename and setting it when initiating the download, e.g:

send_data <data>, :filename => @workflow.original_filename, :content_type => <content_type>, :disposition => 'attachment'

Its particularly annoying when downloading a pack, as every file in the pack is renamed to append the _12345.xml . In my case I wish to reuse the files outside of myExperiment and have needed to manually rename each individual file back to its original.

Why not use the original name, and only append the magic number if a clash actually occurs ?

regards,
Stuart.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]