Joined June 2013
·
Posted to
Nginx direct file upload
over 1 year
ago
I tried your solution, upload works great but the tmp file gets stored as /tmp/00000x (x is a digit), and like the upload is async compared to the rest of the form that has already been saved as a "resource", how to you know what uploaded file belongs to what resource ? How can you know in advance where it's going to store it ?
Achievements
88 Karma
0 Total ProTip Views

Kilo of Lemmings
Establish a space in the open source hall of fame by getting at least 1000 devs to watch a project

Mongoose 3
Have at least three original repos where Ruby is the dominant language

Lemmings 100
Write something great enough to have at least 100 watchers of the project

Forked 100
Have a seriously badass project that's been forked at least 100 times

Forked 50
Have a project with a thriving community of users that's been forked at least 50 times

Forked 20
Have an established project that's been forked at least 20 times

Forked
Have a project valued enough to be forked by someone else

Charity
Fork and commit to someone's open source project in need

Mongoose
Have at least one original repo where Ruby is the dominant language
Ok I didn't notice that the upload request from the client is passed to the backend when the upload finishes within the same http request. So you are sure you're processing this client request. That's what I was wondering.
Thanks for your tip, really handy