Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Wee Ting C. on April 13, 2023, 08:40:34 am



Title: Upload File
Post by: Wee Ting C. on April 13, 2023, 08:40:34 am
Hi,

Possible to check filesize in Genero BDL before upload file into server ?

Thank you.

Regards,
Cheong


Title: Re: Upload File
Post by: Reuben B. on April 14, 2023, 03:50:41 am
Hi,

It probably won't change the answer but you should state versions and what front-end you are using.

Also are you interested in the filesize or are you really wanting to stop file transfer if file is over a certain size?

Reuben


Title: Re: Upload File
Post by: Wee Ting C. on April 14, 2023, 05:46:19 am
Hi Reuben,

We are using GDC v3.20.08.
We want to control the file size uploaded into the server.

Thank you.

Regards,
Cheong.


Title: Re: Upload File
Post by: Wee Ting C. on May 06, 2023, 03:33:29 am
Hi,

At the moment, GDC and GBL unable to check file size before file upload into the server?

Thank you.

Regards,
Cheong


Title: Re: Upload File
Post by: Reuben B. on May 08, 2023, 12:34:46 am
If you want answers within our support KPI timeframes you should raise questions through support portal.

If you want answers from our community, then sometimes you may have to wait for someone to respond.

My understanding is that this is normally managed by Web Servers, whereby as part of the Web Server configuration you can impose a limit on the size of files uploaded.  Google your web server name and how to limit file upload size for tips on web server configuration in this area.  That won't stop a user selecting a large file but will raise an error when it is uploaded and goes past the limit.

We do have tasks in the system to interrogate the file after selection and before loading ...
https://4js.com/support/issue/?id=FGL-4422
https://4js.com/support/issue/?id=GEN-187

https://developer.mozilla.org/en-US/docs/Web/API/File

... but nothing has come to fruition to date. If you are interested, contact your support contact and get yourself added to the list of requestors for these tasks.

Reuben