Unable to upload attachments #263

Closed
opened 2026-02-04 19:07:46 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @RihanArfan on GitHub (Mar 25, 2019).

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 (Mar 25, 2019). 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 2026-02-04 19:07:46 +03:00
Author
Owner

@dani-garcia commented on GitHub (Mar 25, 2019):

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 (Mar 25, 2019): 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 (Mar 25, 2019):

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 (Mar 25, 2019): 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 (Mar 28, 2019):

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 (Mar 28, 2019): 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

@mprasil commented on GitHub (Mar 29, 2019):

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

@mprasil commented on GitHub (Mar 29, 2019): `413`is usually a response for too big requests. How big is the attachment you're trying to upload?
Author
Owner

@RihanArfan commented on GitHub (Mar 29, 2019):

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

@RihanArfan commented on GitHub (Mar 29, 2019): Was Nginx side. Just had to set the maximum upload side in my config. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#263