aboutsummaryrefslogtreecommitdiff
path: root/src/site/components/uploader
diff options
context:
space:
mode:
authorKana <[email protected]>2021-01-07 03:47:42 +0900
committerGitHub <[email protected]>2021-01-07 03:47:42 +0900
commitf9444691627d6168511a5066553dae6dc0390c58 (patch)
tree0242209276be5fe4379503f1fd45db54ce59f7d4 /src/site/components/uploader
parentfix: dont show admin navbar if not an admin (diff)
parentfeat: add rehashing script (diff)
downloadhost.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/components/uploader')
-rw-r--r--src/site/components/uploader/Uploader.vue7
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
}
});