disable validation and resumable for gcs uploads
This commit is contained in:
parent
1bb1e8123f
commit
7f1ce41d9c
|
@ -19,7 +19,12 @@ class GCSStorage {
|
||||||
set(id, file) {
|
set(id, file) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
file
|
file
|
||||||
.pipe(this.bucket.file(id).createWriteStream())
|
.pipe(
|
||||||
|
this.bucket.file(id).createWriteStream({
|
||||||
|
validation: false,
|
||||||
|
resumable: false
|
||||||
|
})
|
||||||
|
)
|
||||||
.on('error', reject)
|
.on('error', reject)
|
||||||
.on('finish', resolve);
|
.on('finish', resolve);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue