Skip to content

Commit

Permalink
fix naming bug (can't have '/' in names)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Apr 18, 2022
1 parent 8f3c9f3 commit 6df8e9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ export const queueFileUpload = async ({ pickedFile, parent, progressCallback, ca
versionedUUID: undefined
}

pickedFile.name = pickedFile.name.split("/").join("_").split("\\").join("_")

let generatedFileName = ""

if(pickedFile.name.indexOf(".") !== -1){
Expand Down

0 comments on commit 6df8e9e

Please sign in to comment.