Open offline opened 14 years ago
I'm not that sure it is possible since the upload progress module is not the end-point of the upload. Can you please give me some links on the "popular ajax fileuploaders", so that I can try one and see how/why the parameters are POSTed.
This is the one that i used. http://github.com/valums/ajax-upload
You can see setData method here http://github.com/valums/ajax-upload/blob/master/ajaxupload.js#L317 this is the way to add post parameters to uploaded file.
currently i change the url for every upload like so http://dumpz.org/17427/
We need in our company nginx php compatibile uploadprogress, so i create a patch that look at first POST parameter + report some new variables. You can find patch and other stuff here http://blackhole.sk/~stanojr/uploadprogress-nginx-php-compat/
This patch is not heavily tested and can have bugs.
The patch works like a charm and produced less problems than the original version for us.
One note: The 300 character limit means that the hidden form field has to be submitted as one of the first fields in the form. In our environment we increased this limit slightly to 1024chars to be a bit more flexible. (we are having 2 fields on top of each form which are not possible to be removed).
@phroggar @stanojr Im sorry if this is a simple question - I am having a hard time configuring this setup... Im not using apache at all as a php interpreter, and instead am using php-fpm. Will this still work? How would I integrate the necessary configuration options and what will the upload form look like. Any help is greatly appreciated!!!
Currently as docs says we have two method to pass X-Progress-ID (GET/Headers). The problem with that is all popular ajax fileuploaders only allow to add post paramteres along with file. Yes, we can point to url with GET parameter, but it will be nice to have it in POST also if it possbile