Hi,
I have a requirement to restrict upload size of BLOB field. By default it allows to upload upto 2 GB. My requirement is to restrict it to 1 MB. i.e. pictures more than 1 MB should not be able to upload. Can this be done? Please help.
Best Regards,
Lakshan.
*This post is locked for comments
I have the same question (0)you can use .net class System.IO.FileInfo to check the size of the file before importing.
// variables:
// FileInfo, record, System.IO.FileInfo
// path, text
// length, integer
FileInfo := FileInfo.FileInfo(path);
length := FileInfo.Length;
if length > 1.000.000 then
error('picture to big');