-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Cannot create issue attachment via the API when using query parameter #30766
Comments
I don't think there was a relevant change. But with |
I'm pretty sure I could use it in older versions with no problem... I don't remember which version though. This is how the attachment looks now: When using the What is the point of the name parameter in the API docs if it's never used? |
It is used and overrides the upload filename. If you pass |
To add some clarification, the problem you are having is that when you pass You have a few options to solve this:
However, if you want to allow a file with no extension, this does not look possible currently given the code that I see. We don't accept empty entries in |
@kemzeb thanks for the info. My intention was not to add a file with no extension. As I've already said above I thought that the |
No problem. After exploring the following commits:
To me it looks like we have been performing these checks on the |
Description
In previous versions I used to be able to create issue attachments via the API like so (as per the docs):
However now the server responds:
The attachment is created fine if the name query parameter is removed.
Gitea Version
1.21.11
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Binary download, systemd
Database
None
The text was updated successfully, but these errors were encountered: