RESOLVED FIXED268827
[upload-file-to-url] Add Content-Type
https://bugs.webkit.org/show_bug.cgi?id=268827
Summary [upload-file-to-url] Add Content-Type
Jonathan Bedard
Reported 2024-02-06 08:15:48 PST
By default, upload-file-to-url uploads everything as an octet stream. This is often correct, but when, for example, uploading build logs, we want to set the content type to be 'plain/text'. More generally, we want callers to be able to specify the Content-Type used by upload-file-to-url, along with making some reasonable educated guesses based on file extension.
Attachments
Patch (2.96 KB, patch)
2024-02-06 08:21 PST, Jonathan Bedard
no flags
Patch (2.94 KB, patch)
2024-02-06 08:49 PST, Jonathan Bedard
no flags
Patch (2.69 KB, patch)
2024-02-06 10:23 PST, Jonathan Bedard
no flags
Radar WebKit Bug Importer
Comment 1 2024-02-06 08:16:55 PST
Jonathan Bedard
Comment 2 2024-02-06 08:18:32 PST
Jonathan Bedard
Comment 3 2024-02-06 08:21:06 PST
Jonathan Bedard
Comment 4 2024-02-06 08:49:39 PST
Jonathan Bedard
Comment 5 2024-02-06 08:56:31 PST
We shouldn't make reasonable guesses, since for signed S3 URLs, the content-type must exactly match. This means that the caller must specify the content type explicitly, otherwise we can expect surprising errors.
Jonathan Bedard
Comment 6 2024-02-06 10:23:27 PST
EWS
Comment 7 2024-02-06 10:38:48 PST
Committed 274156@main (b563a0725168): <https://commits.webkit.org/274156@main> Reviewed commits have been landed. Closing PR #23922 and removing active labels.
EWS
Comment 8 2024-02-06 11:49:20 PST
Committed 272448.504@safari-7618-branch (5fb0f7715eb9): <https://commits.webkit.org/272448.504@safari-7618-branch> Reviewed commits have been landed. Closing PR #1062 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.