muk-it / muk_dms

MuK Document Management System
GNU Lesser General Public License v3.0
91 stars 144 forks source link

Large PDF files is not uploading #98

Closed bhanukiran6688 closed 4 years ago

bhanukiran6688 commented 5 years ago

Hi, Impacted versions: 11 and 12 In documents view [first menu, may be javascript view], there is an option to upload files. When small files are uploaded there is no issue but when files greater that 12MB are uploaded, the upload fails and no error message is shown either in view or in the server logs. Even after waiting for 10 minutes, the uploaded file doesn't show in the documents list. This is reproducible in MUK demo server.

dngster commented 4 years ago

Hello, I have also encountered the same issue where the Connection is lost when I tried to upload files about the size of 1 mb. File size up to 500 kb can be uploaded without any issues.

Not sure if the below error message corresponds to the same issue : "Bad Request <function DataSet.call_kw at 0x7f357e312510>, /web/dataset/call_kw/muk_dms.file/create: Function declared as capable of handling request of type 'json' but called with a request of type 'http'"

Appreciate any help and advice on this issue! @keshrath

keshrath commented 4 years ago

Can you tell me which upload fails?

dngster commented 4 years ago

I have tried docx and pdf file format that are only 1.2mb and 1.9mb yet it failed to upload. I have just tried creating a docx file that only contains dummy lorem ipsum text at 5.2mb and it fails to upload, showing the same connection lost error message. It seems that any file upload of 1.0 mb and above would fail.

keshrath commented 4 years ago

I mean which view and button. So I can reproduce the steps you took.

dngster commented 4 years ago

Files_Drag_and_Drop Files_Manual_Create_Upload please see attached screenshots. For both methods of uploading by Drag and Drop and Manually uploading the files using the "Create" button, it ended up with the same issue.

keshrath commented 4 years ago

The 2. way of uploading uses the standard Odoo binary widget. So you should have the problem not only on the DMS. Might be the case that the problem is actually your web server and the limits set there.

dngster commented 4 years ago

@keshrath you are right. the issue was with the limits set on the web server. we have increased it and are able to upload larger file size now. thank you!