Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
ltrannoy
Posts: 19 Joined: Sat Jul 26, 2014 10:09 am
Location: France
Unread post
by ltrannoy » Sat Aug 02, 2014 9:25 am
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
Last edited by
ltrannoy on Wed Aug 13, 2014 2:08 pm, edited 1 time in total.
admin
Site Admin
Posts: 2815 Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times
Unread post
by admin » Tue Aug 05, 2014 2:21 am
Thanks ltrannoy,
I've updated the wiki now.
Steven