question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Req: specific the Content-Type of the upload

See original GitHub issue

It 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
martindurantcommented, Nov 13, 2018

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?

0reactions
martindurantcommented, Feb 18, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found