Okay, I'm sorta getting it to work with this code but it's not uploading it directly to the files folder and it appears that the system temp folder gets cleaned out fast so only the smallest of files get uploaded and moved.
<?php require_once "phpuploader/include_phpuploader.php" ?>
<html>
<body>
<form id="form1" method="POST">
<?php
// Create Uploader object.
$uploader=new PhpUploader();
// Set a unique name to Uploader
$uploader->Name="MyUploader";
//Step 3: The files will be uploaded to the following folder directly.
$uploader->AllowedFileExtensions="pdf,zip,7z";
$uploader->SaveDirectory="/data/20/1/120/121/1935121/user/2110034/htdocs/files";
//Step 4: Render Uploader
$uploader->Render();
?>
</form>
<?php
//Gets the GUID of the file based on uploader name
$fileguid=@$_POST["MyUploader"];
if($fileguid)
{
//get the uploaded file based on GUID
$mvcfile=$uploader->GetUploadedFile($fileguid);
if($mvcfile)
{
//Gets the name of the file.
echo($mvcfile->FileName . "<br>");
//Gets the temp file path.
echo($mvcfile->FilePath . "<br>");
//Gets the size of the file.
echo($mvcfile->FileSize . "<br>");
//Copys the uploaded file to a new location.
//$mvcfile->CopyTo("/uploads");
//Moves the uploaded file to a new location.
$mvcfile->MoveTo("/data/20/1/120/121/1935121/user/2110034/htdocs/files");
//Deletes this instance.
//$mvcfile->Delete();
}
}
?>
</body>
</html>
Here's my php.ini code:
file_uploads = on
upload_max_filesize = 250M
post_max_size = 300M
max_input_time = 60
max_execution_time = 30