Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Upload File  (Read 8031 times)
Wee Ting C.
Posts: 23


« 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
Reuben B.
Four Js
Posts: 1108


« Reply #1 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

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Wee Ting C.
Posts: 23


« Reply #2 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.
Wee Ting C.
Posts: 23


« Reply #3 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
Reuben B.
Four Js
Posts: 1108


« Reply #4 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





Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines