Page 1 of 1

[SOLVED] Problem with Upload Form

Posted: Sat Aug 02, 2014 9:25 am
by ltrannoy
Hi,

http://wiki.nubuilder.net/index.php/Mis ... pload_Form
On a successful upload to the server a JSON string is saved into a Hash Variable #FILES# so we can fetch the file information from this using the json_decode function from PHP.
The code does in the After Save tab not work for me :

Code: Select all

//fetch the uploaded file information
$J = json_decode('#FILES#');


But this code works :

Code: Select all

//fetch the uploaded file information
$J = json_decode(nuGetHash('#FILES#'));


Thanks

Re: Problem with Upload Form

Posted: Tue Aug 05, 2014 2:21 am
by admin
Thanks ltrannoy,

I've updated the wiki now.

Steven