jfeldstein / jQuery.AjaxFileUpload.js

jQuery plugin to magically make file inputs upload via ajax
408 stars 246 forks source link

HTTP_X_REQUESTED_WITH #46

Open str opened 9 years ago

str commented 9 years ago

I'm trying to send a file using this plugin, but the server side checking confirms if it's a valid ajax call, detecting if HTTP_X_REQUESTED_WITH is set in the header. This is an iframe submit, not an ajax call, so the header is not set.

How can I set the header to validate against the server side checking?

jfeldstein commented 9 years ago

Take a look at http://stackoverflow.com/a/17695034/311901

And give that a shot.

You'll probably want to make a fork / pull-request for that.

~ Jordan

See what I'm into on AngelList https://angel.co/jordan-feldstein

On Thu, Aug 6, 2015 at 7:51 PM, Stuardo -StR- Rodríguez < notifications@github.com> wrote:

I'm trying to send a file using this plugin, but the server side checking confirms if it's a valid ajax call, detecting if HTTP_X_REQUESTED_WITH is set in the header. This is an iframe submit, not an ajax call, so the header is not set.

How can I set the header to validate against the server side checking?

— Reply to this email directly or view it on GitHub https://github.com/jfeldstein/jQuery.AjaxFileUpload.js/issues/46.