support restarting upload

This commit is contained in:
2024-04-23 15:01:17 +10:00
parent 257e241aea
commit eae8af936b
2 changed files with 14 additions and 3 deletions

View File

@@ -130,7 +130,13 @@ let SM = {
formData.append('file', chunk);
formData.append('filename', file.name);
formData.append('filesize', file.size);
formData.append('fileappend', true);
if (start === 0) {
formData.append('filestart', true);
} else {
formData.append('fileappend', true);
}
if (title !== '') {
formData.append('title', title);
}