disable validation and resumable for gcs uploads

This commit is contained in:
Danny Coates 2019-01-09 13:36:27 -08:00
parent 1bb1e8123f
commit 7f1ce41d9c
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,12 @@ class GCSStorage {
set(id, file) {
return new Promise((resolve, reject) => {
file
.pipe(this.bucket.file(id).createWriteStream())
.pipe(
this.bucket.file(id).createWriteStream({
validation: false,
resumable: false
})
)
.on('error', reject)
.on('finish', resolve);
});