Unable to upload attachments #2154

Closed
opened 2025-10-09 17:47:55 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @RihanArfan on GitHub.

I'm having issues trying to upload attachments to an item.

When trying to get an attachment, I get the following error in my browser console.
POST https://*vault.example.com*/api/ciphers/*string*/attachment 413

Originally created by @RihanArfan on GitHub. I'm having issues trying to upload attachments to an item. When trying to get an attachment, I get the following error in my browser console. `POST https://*vault.example.com*/api/ciphers/*string*/attachment 413` ![](https://file.properties/host/raw/RizHPKXl.png)
OVERLORD added the question label 2025-10-09 17:47:55 +03:00
Author
Owner

@dani-garcia commented on GitHub:

Do you get any errors in the log? Is the server behind a proxy that could be modifying the requests in some way?

@dani-garcia commented on GitHub: Do you get any errors in the log? Is the server behind a proxy that could be modifying the requests in some way?
Author
Owner

@BlackDex commented on GitHub:

Also, please check if the proxy has some kind of upload limitation.
Nginx for instances has some lower values by default. I don't know if this is also the case with other proxy tools.

@BlackDex commented on GitHub: Also, please check if the proxy has some kind of upload limitation. Nginx for instances has some lower values by default. I don't know if this is also the case with other proxy tools.
Author
Owner

@RihanArfan commented on GitHub:

Bitwarden_rs is behind an Nginx reverse proxy and no error appears in the server log. I'll take a look at my Nginx configuration.

@RihanArfan commented on GitHub: Bitwarden_rs is behind an Nginx reverse proxy and no error appears in the server log. I'll take a look at my Nginx configuration.
Author
Owner

@RihanArfan commented on GitHub:

Was Nginx side. Just had to set the maximum upload side in my config. Thanks!

@RihanArfan commented on GitHub: Was Nginx side. Just had to set the maximum upload side in my config. Thanks!
Author
Owner

@mprasil commented on GitHub:

413is usually a response for too big requests. How big is the attachment you're trying to upload?

@mprasil commented on GitHub: `413`is usually a response for too big requests. How big is the attachment you're trying to upload?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2154