myexperiment-discuss
[Top][All Lists]
Advanced

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

Re: [Myexperiment-discuss] Download filenames and _12345.xml


From: Danius Michaelides
Subject: Re: [Myexperiment-discuss] Download filenames and _12345.xml
Date: Wed, 17 Jun 2009 14:58:46 +0100 (BST)

On Wed, 17 Jun 2009, Stuart Owen wrote:

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 ?

I believe Don was looking at eliminating the magic number but there was a
issue and he paused work on that. Cant remember what it was exactly, but I
dont think it was insurmountable.

I'm sure he can comment when he's back from holiday.
Danius




reply via email to

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