Skip to content

Conversation

spollard
Copy link

Attempting to fix #144

@spollard spollard changed the title Decode uri before ensuring folder creation Fix %20 in folder name sometimes Jul 26, 2022
@@ -46,7 +46,7 @@ export default class DavrosUploader extends Component {

var fullPath = ['/', this.uploadLocation, path].join('');

yield File.ensureCollectionExists(fullPath).then(() => {
yield File.ensureCollectionExists(decodeURI(fullPath)).then(() => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than encoding and then decoding, can we defer the encoding step or do it on a parallel path? (I'm actually not even sure why URI-encoding is happening in the first place.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When dropping files into a directory with spaces into its name, A duplicate directory with %20s is created
2 participants