Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

[SOLVED] Problem with Upload Form

Post Reply
ltrannoy
Posts: 19
Joined: Sat Jul 26, 2014 10:09 am
Location: France

[SOLVED] Problem with Upload Form

Unread post 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
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

Re: Problem with Upload Form

Unread post by admin »

Thanks ltrannoy,

I've updated the wiki now.

Steven
Post Reply