Skip to content

Server does not accept file upload identifiers containing slashes

Uploading the following file form data currently does not work:

-----------------------------118239662738460814643246749165
Content-Disposition: form-data; name="FileRepresentation"

<Request><File upload="tf/test.txt" name="test.txt" path="/DataAnalysis/tf/test.txt"></File></Request>
-----------------------------118239662738460814643246749165
Content-Disposition: form-data; name="tf/test.txt"; filename="tf/test.txt"
Content-Type: application/octet-stream

hi

-----------------------------118239662738460814643246749165--

However, it does work, using a version without slashes:

-----------------------------395145887815014542773023851246
Content-Disposition: form-data; name="FileRepresentation"

<Request><File upload="file1" name="test.txt" path="/DataAnalysis/tf/test.txt"></File></Request>
-----------------------------395145887815014542773023851246
Content-Disposition: form-data; name="file1"; filename="file1"
Content-Type: application/octet-stream

hi

-----------------------------395145887815014542773023851246--

Apparently the changed identifier from "tf/test.txt" to "file1" did solve the issue.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information