Nginx Tornado File Upload

Francis Daly francis at
Fri Jul 15 12:08:07 MSD 2011

On Fri, Jul 15, 2011 at 03:37:07AM -0400, akash.gangil wrote:
> Finally solved it, thanks for your help! :)

Good news!

And, to help the next person who has a similar problem and finds this
thread when using a search engine, can you share what the solution was?

The debug log shows:

hashed path: /tmp/0000000001

and then eventually

finished cleanup of file "/tmp/0000000001" after http status 400 while closing request

which may explain why you didn't see the file in /tmp when you went
looking for it.

And it also shows

http script var: "upfile"
http script copy: ".path"
http script copy: "“"
http script var: "/tmp/0000000001"
http script copy: "”"

so nginx thinks it is setting upfile.path correctly in what was sent to
the backend.

So presumably the problem was elsewhere.


Francis Daly        francis at

More information about the nginx mailing list