pass params by method post #113
Comments
I'd like to understand if this is possible also, seems the issue was closed without comment. |
Same here! |
Why is it useful to send a second request with the parameters? The parameters are already sent with the upload request. |
I'd like more details on this as well since I just ran into a use case where this is causing a problem in our app. Our backend expects the parameters to be in the POST body, not in the URL. After a brief look at the file-uploader code it appears that this would be very easily doable. Can you please confirm whether this is doable or not, @valums? |
@jpoehls Andrew Valums is no longer working on this project. I have taken over. If you want the parameters to be present in the request instead of the query string, the request must be multipart encoded. Currently, you can force the XHR upload request to use this encoding (see the If this functionality is added, it would need to be tied to an option, and would default to the current behavior (params in the query string). |
I've scheduled this as an enhancement for the 3.3 milestone. If I receive a bunch of comments from current users who would like to see this sooner, I can move it to an earlier milestone. |
Sounds good. I'm just trying to pass a CSRF token. I tried using a custom header but of course that doesn't work in IE and I don't want to pass it in the QueryString. |
I'd also appreciate if that could be added. Many thanks. |
Scheduled for 3.3 at this point. |
we are all waiting for 3.3 :D |
@blakie The beauty of github lies in the ability to submit proposed changes to a project's code in the form of a pull request. Feel free to contribute this yourself if you'd like it completed sooner. Otherwise, i'll have to do my best and fit it in to the 1.5 hours off free time i have every night or so. If a bunch of people comment on this issue after my post, i can certainly consider moving it into an earlier release as well... |
This is definitely needed due to simple fact that modern perl CGI module many years just skip url params in POST requests. |
@rnicholus I just wrote a quick and dirty patch. In the next days I will submit the pul request. |
Does this patch address the xhr AND the form uploader?
|
quick and dirty meant that it fixed only my urgency (read: form uploader). On Fri, Nov 23, 2012 at 2:39 PM, Ray Nicholus notifications@github.comwrote:
|
The xhr fix is quite easy. Form uploader is another story. Also, sending
|
Since this is becoming a popular request. I'll make this my next feature to tackle after adding the ability to upload directories (#380). |
This much-request feature has now been implemented in the 3.1 branch. See the associated blog post for more details. |
i googled much time, but no answer. my problem that file-uploader add params to url, not pass them by post.
for example
action:'/upload.php'
params : { x1:'x1'}
so it will submit to url /upload.php?x1=x1(get), but i need to pass additional params by post. is this possible?
The text was updated successfully, but these errors were encountered: