Added June 2013
(The following applies beginning with A-Shell 6.0.1261 and ashnet.dll 1.4.132 of October Oct 2012)
You can modify the default Content-Type and Content-Disposition headers that would otherwise be generated when uploading files using the XHTTPF_REQUPLOAD+XHTTPF_REQFILE flags, by prepending a control sequence prefix on the front of each filepsec in the filespec list specified in the request parameter. The format of the prefix is:
Content-Type=<type>|<name>=
where <type> may be any content-type string, known or unknown, and <name> is the value of the "name" attribute to be associated with the file. For example:
request$ = "Content-Type=text/html|homepage=c:\temp\mypage.txt"
In the above case, the header associated with the file in the request would look something like:
Content-Disposition: form-data; name="homepage"; filename="mypage.txt"
Content-Type: text/html
To upload multiple files in a single request, just separate them in the request string by separating them with semicolons. Any filename which does not start with the "Content-Type" prefix will be treated as before, with the Content-Type being set according to the file extension, and the name attribute set to "file" (,"file2", etc.)