Quantcast
Channel: ExeOutput for PHP - G.D.G. Software Forum
Viewing all articles
Browse latest Browse all 1024

Help with Image Upload, Please

$
0
0

@oldteacher wrote:

I have spent hours reading the docs and trying different methods with no luck. Tried info from:

http://www.exeoutput.com/help/choosingfilesupload?s[]=upload

http://www.exeoutput.com/help/savingfiles

Tried so many things over past week, have lost count...

Here is the simple PHP script I am trying to use:

`<?php
if(empty($_FILES['file']))
{
exit();
}
$errorImgFile = "./img/img_upload_error.jpg";
$destinationFilePath = '../mathtest/images/'.$_FILES['file']['name'];
if(!move_uploaded_file($FILES['file']['tmpname'], $destinationFilePath)){
echo $errorImgFile;
}
else{
echo $destinationFilePath;
}

?>`

Most basic upload script but for life of me cannot get it to work with EXEOut. Could you please give me example how to make work? Be much appreciated.

Using EXEOut V2 Beta if makes any difference.

Thank you.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1024

Trending Articles