Req: specific the Content-Type of the upload
See original GitHub issueIt would be useful to specify the content-type when write to a file, especially if text/plain as browser can render without saving and opening outside.
Requires GCSFile().open()
to accept, in wt
or wb
mode only, an optional content-type
argument, which is passed to either simple upload
or resumable upload
(initialize only).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Req: specific the Content-Type of the upload · Issue #119
It would be fine to add content-type and content-encoding to open() and put(). Indeed. maybe arbitrary header parameters could be passed through ...
Read more >Whats Content-Type value within a HTTP-Request when ...
The content type is per specification multipart/form-data . This is a special content type which can be visualized as multiple sub-requests ...
Read more >Content-Type - HTTP - MDN Web Docs - Mozilla
The Content-Type representation header is used to indicate the original media type of the resource (prior to any content encoding applied ...
Read more >Make Content Type required in the Upload Dialog Box
When I upload a file , the dialog box opens and default content type is already selected. Is there a way that the...
Read more >Upload file data | Google Drive
Perform a simple upload · Add the file's data to the request body. · Add these HTTP headers: Content-Type . Set to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would be fine to add content-type and content-encoding to open() and put(). Indeed. maybe arbitrary header parameters could be passed through. Would you have time to attempt this? Is the documentation clear on how to create VCR recordings for tests?
How to record new tests: https://gcsfs.readthedocs.io/en/latest/developer.html#testing-and-vcr