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

'+' (plus character) removed from fname of uploaded file #536

Open
jennydaman opened this issue Feb 28, 2024 · 0 comments
Open

'+' (plus character) removed from fname of uploaded file #536

jennydaman opened this issue Feb 28, 2024 · 0 comments
Labels

Comments

@jennydaman
Copy link
Contributor

curl -u chris:chris1234 -s 'http://localhost:8000/api/v1/uploadedfiles/' \
  -H 'Accept: application/vnd.collection+json' \
  -F 'upload_path=chris/uploads/wow-upload-01/LIC+ENSE' \
  -F "fname=@LICENSE"

result:

{
  "collection": {
    "version": "1.0",
    "href": "http://localhost:8000/api/v1/uploadedfiles/",
    "items": [
      {
        "data": [
          {
            "name": "id",
            "value": 170
          },
          {
            "name": "creation_date",
            "value": "2024-02-27T19:47:45.815718-05:00"
          },
          {
            "name": "fname",
            "value": "chris/uploads/wow-upload-01/LICENSE"
          },
          {
            "name": "fsize",
            "value": 1085
          }
        ],
        "href": "http://localhost:8000/api/v1/uploadedfiles/170/",
        "links": [
          {
            "rel": "file_resource",
            "href": "http://localhost:8000/api/v1/uploadedfiles/170/LICENSE"
          },
          {
            "rel": "owner",
            "href": "http://localhost:8000/api/v1/users/1/"
          }
        ]
      }
    ],
    "links": []
  }
}
@jennydaman jennydaman added the bug label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant