mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
disable validation and resumable for gcs uploads
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user