get filesize after upload

Retrieve file size and name after upload in ChronoForms.

Overview

The uploaded file's details are not directly accessible in the Custom Code action.
Access the file information, including size and name, from the form's files array after the Files Upload action completes.

Answered
ChronoForms v5
Ga Gatsman 24 Feb, 2017
Can i get the filesize in a Custom Code in the On success of a Files Upload?
Or the name created for the uploaded file? i could work it from there.
Gr GreyHead 24 Feb, 2017
Answer
Hi Gatsman,

The name, link. path and size are all added to the $form->files['input_name'] after the Files upload action. Add a Debugger temporarily to see the info.

Bob
This topic is locked and no more replies can be posted.