Reading the docs it warns to keep attached files to below 300 kb due to nuBuilder converting them to JSON format.
Would it be possible to change this so the max file size could be bigger?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Increase Manageable File Attachment Size to >300 kb [done]
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Increase Manageable File Attachment Size to >300 kb
Good idea! Using the latest version from Github (just nuform.js has changed), you can declare a nuOnFileLoad() function e.g. in the header and/or any form to override the maximum length check
Code: Select all
function nuOnFileLoad(id, file) {
if (file.length > 12000000) {
// 600KB
nuMessage([
nuTranslate("File is too large, cannot be saved. Must be under 600Kb"),
]);
return false;
}
return true;
}
Re: Increase Manageable File Attachment Size to >300 kb
Great, thank you.
I'm looking at maybe using nuBuilder for a record system that would hold scanned PDF records of a a few MBs in size, do you know what the upper limit would be for uploaded file sizes in nuBuilder?
I'm looking at maybe using nuBuilder for a record system that would hold scanned PDF records of a a few MBs in size, do you know what the upper limit would be for uploaded file sizes in nuBuilder?
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Increase Manageable File Attachment Size to >300 kb
AFAIK there is no limit but it simply doesn't make sense after a certain size, because it becomes too slow. It's best to try out different sizes and measure the times.