Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow identifier transmited in POST #4

Open
offline opened this issue Mar 4, 2010 · 5 comments
Open

allow identifier transmited in POST #4

offline opened this issue Mar 4, 2010 · 5 comments

Comments

@offline
Copy link

offline commented Mar 4, 2010

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

@masterzen
Copy link
Owner

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.

@offline
Copy link
Author

offline commented Mar 5, 2010

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/

@stanojr
Copy link

stanojr commented Jan 7, 2011

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.

@phroggar
Copy link

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).

@thomascrown
Copy link

@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!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants