Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Mysterious failure when trying to upload file beginning with "#" #75

Closed
zachmullen opened this issue Oct 3, 2014 · 4 comments
Closed
Labels
Milestone

Comments

@zachmullen
Copy link
Member

Steps:

  1. Go to folder, click "Upload here"
  2. Select a file with the name, e.g. "#file.txt"
  3. Click Start Upload.

We get a 400 and a message appears that says "undefined".

@zachmullen zachmullen added the bug label Oct 3, 2014
@zachmullen
Copy link
Member Author

This actually happens if "#" is present in any part of the file name.

@jamiesnape
Copy link
Contributor

I'll look into it.

@jamiesnape jamiesnape self-assigned this Oct 6, 2014
@jamiesnape
Copy link
Contributor

A rough guess is that the filename isn't being encoded in the call to /system/uploadtoken and the # is being treated as the start of an anchor in the complete URL. Will be fixed once I can track down that piece of code.

@jamiesnape
Copy link
Contributor

That is exactly the issue. As an aside, really that call should have been a POST as it is creating an upload token.

@jamiesnape jamiesnape modified the milestone: Version 3.4 Apr 2, 2015
@jamiesnape jamiesnape removed their assignment Jun 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants