Comments (2)
It would be nice to build this into gcloud
as well, but it would probably force some bigger changes, maybe:
file.createWriteStream({
gzip: true,
query: {
predefinedAcl: 'publicRead'
},
metadata: {
contentType: 'image/jpeg'
}
});
Or, to stick to a familiar pattern for those who have used the request
library before:
file.createWriteStream({
gzip: true,
request: {
qs: {
predefinedAcl: 'publicRead'
},
json: {
contentType: 'image/jpeg'
}
}
});
@callmehiphop -- any ideas on a way we can implement this? We have Interceptors, but they won't work here, since resumable file uploads are run through this module.
Is there a smarter way to allow method-level, complete request override access in a way that doesn't trash our API (in terms of breaking changes or just verboseness?)
from gcs-resumable-upload.
A PR is here! Finally! #275
from gcs-resumable-upload.
Related Issues (20)
- gcs-resumable-upload #makeRequest: should execute the callback with a body error & response failed HOT 1
- gcs-resumable-upload #makeRequest: should execute the callback with a body error & response for non-2xx status codes failed HOT 1
- gcs-resumable-upload #makeRequest: should execute the callback failed HOT 1
- end to end: should work failed HOT 1
- end to end: should resume an interrupted upload failed HOT 1
- end to end: should just make an upload URI failed HOT 1
- end to end: should return a non-resumable failed upload failed HOT 1
- end to end: should set custom config file failed HOT 1
- How does to make example work with google auth library? HOT 1
- end to end: should work failed HOT 1
- end to end: should resume an interrupted upload failed HOT 3
- Your .repo-metadata.json file has a problem 🤒
- Your .repo-metadata.json file has a problem 🤒
- end to end: should work failed
- end to end: should resume an interrupted upload failed
- end to end: should just make an upload URI failed
- end to end: should set custom config file failed HOT 1
- Reasons behind gcs-resumable-upload deprecation and recommended alternatives? HOT 2
- end to end: should set custom config file failed HOT 1
- end to end: should work failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcs-resumable-upload.