Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix %20 in folder name sometimes #146

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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