ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

How to get the list of uploaded files with this PHP

shiluba 10 Dec, 2019
Hi,
With CFv5, after a File upload action , I could get an array of all the uploaded files with this PHP code :
$form->files
With CFv6, it does not work with :
$this->files
Does anybody know how to get this information with PHP ?
healyhatman 11 Dec, 2019
$this->data('fieldname')
If you've done the upload action then you'll want
$this->var('action_name')
shiluba 11 Dec, 2019
In my case, it should be
$this->var('action_name')
But it gives me this error :
0 Call to undefined method G2\L\View::var()
This error still shows up after I re-installed CFv6. I'm stuck. How can I fix that ?
shiluba 11 Dec, 2019
Answer
No problem. It works like a charm with
$this->get('action_name')
Thank you🙂
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com