In HTML forms related to file uploads, the attribute enctype = "multipart / form-data" must be set. I know that. But why? What exactly has this changed? How is it different from application / x-www-form-urlencoded?
Here's the W3C doc on both counts. It is rather dry, but it may help some.
By default, appliaction / x-www-form-urlencoded cannot send a) large quantities or binary data, or b) text containing non-ASCII characters. That is why you need to set it to multipart / form-data to upload files.
A multipart request can contain several parts (sic). This way you can send files in the HTTP request along with the rest of the request.
A multi-page file can also be found in linked emails.
Source: https://habr.com/ru/post/1286000/More articles:NuSOAP and response using an array - phpJSON and XML performance issues - jsonLoading Java classes that arent needed - javaWPF binding: if the property contains a value path - c #Programming games as a hobby, whether to use Java or C ++ - javaIs there only one “message pump” or many? - c #VisualStudio / C #: debugging an imported DLL - c #Eclipse Abstract Diff Tree Syntax - javaUsing LINQ2SQL to insert a large number of records - c #Is there a parameter for MSDOS commands (e.g. ipconfig) that make them wait for input to disappear? - command-lineAll Articles