Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
24717 Prikazi

I´m getting an error when I try to upload an attachment bigger than 25mb. The error is: Uncaught Error: [_.sprintf] huh?

Is there a limit of size on attachments? Why I´m getting this error?

I have configured to store files in the file system, not db.

Avatar
Opusti

Where are you trying to upload your files and how did you configure your system to store files on the Db?

Avtor Best Answer

I was trying in Spanish_UY, If I try in English it throws a Error Message saying that the maximum size of documents is 25MB. In file: ../web/static/source/js,
this.max_upload_size = 25 * 1024 * 1024; // 25Mb

Avatar
Opusti

Yes I know it but you are trying to upload to the database not to the filesystem

Avtor

I´m uploading in the file system. ir_attachment.location --> file://filestore I can see the attachments in the file system.

Avtor

This happens only with Documents uploaded through Knowledge module, not in attachment button.

Martin, Did you figure out how to increase the limit. I am having the same problem and it appears to be a static value somewhere rather than a parameter we can change.

Avtor

In file: ../addons/web/static/src/js/view_form.js (in my version of the file, line 4963) this.max_upload_size = 25 * 1024 * 1024; // 25Mo Change the number 25 for the size you want. If I put a number larger than aprox 200mb and try to attach a file of that size, the browser freezes. So, I´ve set it at 100 until I find out what´s the problem

Martin, Thank you for responding. I actually found that same file myself (after a lot of digging) and it worked out. Mine was set to 250mb which so far has worked. Only report of a problem was from a phone upload where the upload failed with a cryptic message. Turned out it was due to screen turning off.