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

Error uploading with sails #1841

Open
elesdoar opened this issue Jan 19, 2017 · 0 comments
Open

Error uploading with sails #1841

elesdoar opened this issue Jan 19, 2017 · 0 comments

Comments

@elesdoar
Copy link

Sails uses skipper, but it requires that file data to be sent before that text parameters.

https://github.com/balderdashy/skipper#text-parameters

It is important to realize that the benefit above relies on a crucial, simplifying assumption: that user agents send any text parameters before the first file parameter in the multipart HTTP request body. For instance, in an HTML form that means putting all of your tags after the other inputs. If you don't want to lay your form out that way, you'll want to use AJAX to submit it instead (see jQuery File Upload / Angular File Upload) or listen for the form's "submit" event to reorder the inputs before submitting the form to the server.

elesdoar added a commit to elesdoar/ng-file-upload that referenced this issue Jan 19, 2017
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

1 participant