Upload file - Save it

hares7293 08 Jul, 2012
I created a form with the possibility to upload a file. I want to use a custom php script for saving the file (image) in a folder.

How can i get the file ? Should i write (if fieldname is image)

$image = $_FILES['image'];
or
$image = $_POST['image'];
or
something else

Thanks in advance
GreyHead 09 Jul, 2012
Hi hares7293,

I'm curious, what do you need to do that the Upload Files (or Upload Files [GH]) action can't do?

The data you need will be in the $_FILES array - see the PHP manual for the exact structure.

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