diff options
| author | Kana <[email protected]> | 2021-01-07 03:47:42 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-07 03:47:42 +0900 |
| commit | f9444691627d6168511a5066553dae6dc0390c58 (patch) | |
| tree | 0242209276be5fe4379503f1fd45db54ce59f7d4 /src/site | |
| parent | fix: dont show admin navbar if not an admin (diff) | |
| parent | feat: add rehashing script (diff) | |
| download | host.fuwn.me-f9444691627d6168511a5066553dae6dc0390c58.tar.xz host.fuwn.me-f9444691627d6168511a5066553dae6dc0390c58.zip | |
Merge pull request #246 from WeebDev/feature/stream-writer
feature: new chunk and write strategy
Diffstat (limited to 'src/site')
| -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 } }); |