diff options
| author | Pitu <[email protected]> | 2021-01-07 02:11:53 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-01-07 02:11:53 +0900 |
| commit | 28efb0d9eddb93b2823b3d260975779c70e15f67 (patch) | |
| tree | 5dc0da2b48bd65470d7f2b02717cc2063dab1fc1 /src/site/components/uploader | |
| parent | fix: dont show admin navbar if not an admin (diff) | |
| download | host.fuwn.me-28efb0d9eddb93b2823b3d260975779c70e15f67.tar.xz host.fuwn.me-28efb0d9eddb93b2823b3d260975779c70e15f67.zip | |
feature: new chunk and write strategy
Diffstat (limited to 'src/site/components/uploader')
| -rw-r--r-- | src/site/components/uploader/Uploader.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/site/components/uploader/Uploader.vue b/src/site/components/uploader/Uploader.vue index f180546..abe2128 100644 --- a/src/site/components/uploader/Uploader.vue +++ b/src/site/components/uploader/Uploader.vue @@ -121,7 +121,7 @@ export default { chunking: true, retryChunks: true, retryChunksLimit: 3, - parallelChunkUploads: true, + parallelChunkUploads: false, chunkSize: this.config.chunkSize * 1000000, chunksUploaded: this.dropzoneChunksUploaded, maxFilesize: this.config.maxFileSize, @@ -176,7 +176,7 @@ export default { console.error(file, message, xhr); }, async dropzoneChunksUploaded(file, done) { - const { data } = await this.$axios.post(`${this.config.baseURL}/upload/chunks`, { + const { data } = await this.$axios.post(`${this.config.baseURL}/upload`, { files: [{ uuid: file.upload.uuid, original: file.name, @@ -186,7 +186,8 @@ export default { }] }, { headers: { - albumId: this.selectedAlbum ? this.selectedAlbum : null + albumId: this.selectedAlbum ? this.selectedAlbum : null, + finishedChunks: true } }); |