Why copy operation on upload file

What is the purpose for uploading a file 1st to pun_tmp_root: /var/tmp/ondemand-nginx/%user, after upload is completed copying it to desired location? Is it not be more efficient to upload it directly to desired location?

Hi, sorry we never got around to this! We monitor Get Help a lot but often forget about this section.

The answer to your question is that that’s how Rack does it (the library that does the webserver loading). You can change the TMP or TMPDIR location, but you have to be careful to make these directories user specific.

That said - why does Rack do it that way? I’m not quite sure. A quick search of their repository doesn’t indicate why.