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 double slash when uploading a file #2106

Merged
merged 3 commits into from
Apr 22, 2022
Merged

Fix double slash when uploading a file #2106

merged 3 commits into from
Apr 22, 2022

Conversation

Tbaut
Copy link
Collaborator

@Tbaut Tbaut commented Apr 19, 2022

I feel we've seen this issue before, reported by Andrew. As I was debugging something else, I found out why it happens.
How to reproduce:

  • click on upload
  • drag a folder with files
  • check the POST upload path and see that the path is //some dir/some-file with a double slash

This should fix it.

@asnaith although I think this is a pretty safe change IMHO, this helper function is used a lot, and it is potentially breaking things. I've spent quite some time to test things, it's used in the preview overview, move files, create directories etc..

@render
Copy link

render bot commented Apr 19, 2022

@render
Copy link

render bot commented Apr 19, 2022

@render
Copy link

render bot commented Apr 19, 2022

@github-actions github-actions bot added the Type: Bug Fix Added to PRs if they are addressing a bug label Apr 19, 2022
Copy link
Contributor

@FSM1 FSM1 left a comment

Choose a reason for hiding this comment

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

Seems to be working well. Makes more sense now that we have figured out the root cause 🎉

Copy link
Contributor

@tanmoyAtb tanmoyAtb left a comment

Choose a reason for hiding this comment

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

There was definitely discussions around the double slash before.
Working well here.

@Tbaut Tbaut merged commit 8f2fc0f into dev Apr 22, 2022
@Tbaut Tbaut deleted the fix/tbaut-double-slash branch April 22, 2022 09:40
@asnaith
Copy link
Member

asnaith commented Apr 25, 2022

@Tbaut nice work on pinpointing the true cause of this! Great to get it fixed 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix Added to PRs if they are addressing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants