silverwind / droppy

**ARCHIVED** Self-hosted file storage
BSD 2-Clause "Simplified" License
1.62k stars 195 forks source link

Error when uploading folders #434

Open ragrets opened 3 years ago

ragrets commented 3 years ago

I got this error when uploading a folder

image

I've already looked at permissions, but it doesnt seem to be the case

I think it happens when running this code in server/utils.js when trying to remove the droppy-upload after adding it, but I'm not sure how to go about it since I don't have any javascript experience

utils.addUploadTempExt = path => path.replace(/(\/?[^/]+)/, (_, p1) =>${p1}.droppy-upload); utils.removeUploadTempExt = path => path.replace(/(^\/?[^/]+)(\.droppy-upload)/, (_, p1) => p1);