On Wed, Oct 21, 2009 at 4:29 PM, Russell Blau <[email protected]> wrote: >> --abc >> Content-Disposition: form-data; name="%s"; filename="%s" >> Content-Type: application/octet-stream >> > What is the second "%s" in the above line? Is this instead of having a > separate form-data element with name="filename", or is it a duplicate of > that element, or is it something entirely different? > name is the name of the form element (wpUploadFile) and filename the name of the file (picture.jpg)
> If RFC 2388 says that the sending application MAY supply a file name, why is > the API treating this as a REQUIRED parameter? It is not, as far as I can see. It is requiring the form element "filename" and ignoring the filename attribute from the file all together. Bryan _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
