We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c4fc9b commit fbabe0eCopy full SHA for fbabe0e
lib/storage/drivers/filesystem.ts
@@ -54,7 +54,9 @@ export const filesystemDriver = defineStorageDriver({
54
},
55
56
async completeMultipartUpload({ uploadId, objectName }) {
57
- await fs.rename(getUploadBufferPath(uploadId), getStoragePath(objectName))
+ const bufferPath = getUploadBufferPath(uploadId)
58
+ await fs.copyFile(bufferPath, getStoragePath(objectName))
59
+ await fs.rm(bufferPath)
60
61
62
async abortMultipartUpload({ uploadId }): Promise<void> {
0 commit comments