Unable to release jar #4196

Closed
opened 2025-11-02 05:42:02 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Martmists-GH on GitHub (Oct 27, 2019).

  • Gitea version (or commit ref): Latest
  • Git version: Latest
  • Operating system: Arch Linux x64
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Trying to upload a jar fails, even when attachments are configured to allow application/java-archive

Screenshots

image

Originally created by @Martmists-GH on GitHub (Oct 27, 2019). - Gitea version (or commit ref): Latest - Git version: Latest - Operating system: Arch Linux x64 - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description Trying to upload a jar fails, even when attachments are configured to allow `application/java-archive` ## Screenshots ![image](https://user-images.githubusercontent.com/16361449/67634569-2a613880-f8be-11e9-946b-7f109215d3ba.png)
Author
Owner

@MayMeow commented on GitHub (Oct 27, 2019):

I had similar problem with exe files... you have to allow them in app.ini https://docs.gitea.io/en-us/config-cheat-sheet/#attachment-attachment

@MayMeow commented on GitHub (Oct 27, 2019): I had similar problem with exe files... you have to allow them in app.ini https://docs.gitea.io/en-us/config-cheat-sheet/#attachment-attachment
Author
Owner

@Martmists-GH commented on GitHub (Oct 28, 2019):

I have that enabled, restarted the gitea service and made sure it's still enabled in the config; Yet I still can't upload them.

@Martmists-GH commented on GitHub (Oct 28, 2019): I have that enabled, restarted the gitea service and made sure it's still enabled in the config; Yet I still can't upload them.
Author
Owner

@zeripath commented on GitHub (Oct 29, 2019):

There are three places where an attachment can be denied:

  • The browser
  • The proxy-server - e.g. NGinx
  • Gitea

What does your browser report the attachment mimetype as? It's possible that dropzone.js is denying the upload because the mimetype the browser is reporting is different from what it is expecting.

Are you running behind a proxy server? Check that it is not denying the upload.

Check your logs to see if the mimetype you are expecting is being passed to Gitea.

@zeripath commented on GitHub (Oct 29, 2019): There are three places where an attachment can be denied: * The browser * The proxy-server - e.g. NGinx * Gitea What does your browser report the attachment mimetype as? It's possible that dropzone.js is denying the upload because the mimetype the browser is reporting is different from what it is expecting. Are you running behind a proxy server? Check that it is not denying the upload. Check your logs to see if the mimetype you are expecting is being passed to Gitea.
Author
Owner

@Martmists-GH commented on GitHub (Oct 29, 2019):

I ended up just setting gitea to allow uploading */* which worked.

@Martmists-GH commented on GitHub (Oct 29, 2019): I ended up just setting gitea to allow uploading `*/*` which worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4196