# Client error: (413) Request Entity Too Large

**URL:** <https://datashield.discourse.group/t/client-error-413-request-entity-too-large/1075>\
**Category:** Support\
**Created:** [28 August 2024 12:28 UTC](https://datashield.discourse.group/t/client-error-413-request-entity-too-large/1075 "2024-08-28T12:28:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gospelON](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@gospelON](https://datashield.discourse.group/u/gospelON)\
**Post date:** [28 August 2024 12:28 UTC](https://datashield.discourse.group/t/client-error-413-request-entity-too-large/1075/1 "2024-08-28T12:28:55Z")

</div>

Currently, we can only upload files smaller than 2MB to the Opal server. We adjusted the parameters and followed the instructions provided in [Opal properties file](https://opaldoc.obiba.org/en/latest/admin/configuration.html#miscelaneous-configuration), the changes did not take effect after restarting the server. Could you suggest a potential solution to this issue?

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [28 August 2024 13:03 UTC](https://datashield.discourse.group/t/client-error-413-request-entity-too-large/1075/2 "2024-08-28T13:03:38Z")

</div>

The error could be due to a proxy in-between. Check with your IT dept.

Regards  
Yannick

---

<div class="post-metadata">

**Author:** ![gospelON](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@gospelON](https://datashield.discourse.group/u/gospelON)\
**Post date:** [2 September 2024 13:44 UTC](https://datashield.discourse.group/t/client-error-413-request-entity-too-large/1075/3 "2024-09-02T13:44:14Z")

</div>

Hello @Yannick,

Thank you for your response. I’m running the DataShield Docker image on my local machine and have modified the Nginx parameter `client_max_body_size` to 1G. This allowed me to successfully upload a CSV file via the Opal UI, and it was correctly stored in both the project and the project table.

However, I encountered an issue when uploading files in other formats. The Docker environment crashes during these uploads.

Additionally, while attempting to upload a file to a project table via `opalr`, the file successfully uploads to the project folder, but I observe an error during the unsuccessful table upload process. The Docker logs display the following error: org.obiba.opal.web.FileResource.uploadFile(java.lang.String, javax.ws.rs.core.UriInfo, javax.servlet throws java.io.IOException, org.apache.commons.fileupload.FileUploadException)
