Specifying a different filename; Not storing the ContentDisposition header. #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently there are two places where
nameexists within the files array: (1) the first string in the pair, and (2) thenamein theContentDispositionheader.filenameOTOH is only in theContentDispositionheader (and thus more difficult to access for readers).Additionally, when writing out a
FormData, the filename for aFilePartis taken from the path of that part. But the consumer of the library might want to specify a different filename than the actual one on disk.I suggest fixing these problems in the following way:
filenamein theFilePart(this change is required inmime-multipart)FilePart.filenamethe canonical filename.Closing to to archival status