-
Notifications
You must be signed in to change notification settings - Fork 235
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
uploading release asset renames files #2968
Comments
Thanks for reporting this @shiftkey From my understanding the encoding discussion matters, reason is because when the API is used, for example using CURL the special characters like If in the other hand the allowed When using the web form, names are not passed as URL parameter but as multi form upload parameters which do not suffer same issues as the former ones. So from my understanding both interfaces are behaving equally, but the input from the user when using the API needs to be sanitised for avoiding using characters like |
In that case, the API docs should be updated to indicate that special characters in filenames should be URL-encoded! |
@charles-cooper we can arrange for that - thanks for the heads up! |
Let us know if you need anything else from our side |
Now that you mention it -- I would also update the example in the docs to a curl command which works with filenames that even have special characters. I think the new |
the release asset upload API modifies characters in uploaded filenames (https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset)
however, when uploading release assets through the webapp, special characters including
'+'
are preserved. it seems that the webapp uses a different API.not sure if this is the place to report this, but the API should not be modifying filenames.
The text was updated successfully, but these errors were encountered: