-
Notifications
You must be signed in to change notification settings - Fork 120
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
how to do with vform post with header multipart/form-data #54
Comments
With this example you can upload files and still pass along other fields. |
Do you mind show me the example? Ya, I read your example upload, how do you send header?
|
Ok, I found what out what is the issue. My first thought is the header problem, and end up it is the key point objectToFormData. Once I imported to my script it work like charm. Thanks! For those who want to change the headers would be like below. But for case, the library will change according. If you change manually it will break the code.
|
Is this working with this.form.submit('put'....? Working perfectly with post, but not with Put! Sends null towards PHP Controller! |
This is a bug in PHP where you can't send files via the PUT method. |
I added the field, but it doesn't work. Can you please share an example? |
how to do with vform post with header multipart/form-data?
I saw your example is when select input file it do ajax file upload.
But for my case, I need to submit together with other form data. I am upload an excel file
Is there any way In your this.form.post(), to add the header info?
The text was updated successfully, but these errors were encountered: