Why am I missing filename and Content-Type while uploading image using form-data?

0 votes
asked Feb 15, 2016 by SvyJohn (1,060 points)
And how would bindonce will be different. I am trying to upload image from my AngularJs client to Django REST API.

5 Answers

–1 vote
answered Feb 19, 2016 by dhr3938 (1,020 points)
Best answer

This file will be read and its content placed in the request. The filename returned is also a file handle. Some browsers return the filename only. If the former, use CGI.
I have used How can I upload a file using HTTP POST with Content-Type=multipart/form-data? component for creating the basic structure of my view
commented Feb 19, 2016 by Is_garlick (690 points)
Why is a StringBuffer called a streamBuffer
commented Feb 20, 2016 by edit_froman (570 points)
This is one thing that batch scripting just does not do well
0 votes
answered Mar 11, 2016 by Fedorkae (370 points)

The content itself is fine, but that second filename gets hosed.
0 votes
answered Apr 7, 2016 by Quicksall_F (610 points)
I gather that this is the sort of thing that the schema module is meant to do
Please refer to Multipart Form Post in C# - Brian Grinstead for more info
0 votes
answered Apr 9, 2016 by Echols_8260 (630 points)
I know this answer is late for this question
Credit for this goes to Content-Type not sent unless a filename is set Issue #74 ...
0 votes
answered Apr 17, 2016 by zbqNot (420 points)
Along with all above answer i would like to add this point too
You can also take a look at this module for angular http://social.msdn.microsoft.com/Forums/wpapps/en-US/2c07f36c-1b5d-4076-a017-6514cdb09fa6/action?threadDisplayName=wpapps&forum=wpdevelop

Related questions

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!