Video Uploading Page

[insert_php]
use foundationphp\UploadFile;
session_start();
require_once ‘src/foundationphp/UploadFile.php’;
if (!isset($_SESSION[‘maxfiles’])) {
$_SESSION[‘maxfiles’] = ini_get(‘max_file_uploads’);
$_SESSION[‘postmax’] = UploadFile::convertToBytes(ini_get(‘post_max_size’));
$_SESSION[‘displaymax’] = UploadFile::convertFromBytes($_SESSION[‘postmax’]);
}
$max = 1024 * 1024;
$result = array();
if (isset($_POST[‘upload’])) {

$destination = __DIR__ . ‘/uploaded/’;
try {
$upload = new UploadFile($destination);
$upload->setMaxSize($max);
$upload->allowAllTypes();
$upload->upload();
$result = $upload->getMessages();
} catch (Exception $e) {
$result[] = $e->getMessage();
}
}
$error = error_get_last();
?>


 


size=10

  • {$error[‘message’]}

“;
}
if ($result) {
foreach ($result as $message) {
echo ”

    • $message

“;
}
}?>


* Must Be filled just once !!!!!



data-postmax=”
data-displaymax=”“>

*

* Image 3 is for Final competition only !!!!!!

*
* (See the Comments Policy or notes below)

  • * All fields must be filled, I mean ALL. Even when you may have made a selction, GO BACK AND CHECK!!!
  • Each file should be no more than .
  • Submission Rules apply as before. Review submission policy
  • Please check and recheck, before pressing the *Upload/Submit* button
  • Some Browsers will not display a box to the left of the “Upload File” button, It is Ok. Press the button
  • For Color Prints Or Mono Prints, Submit the file used for the print; using same size/rules mentioned above.
  • If ‘Competition Type’ allows comments, Image 1 is automatically commented. If wanted, select yes for Images 2.

[/insert_php]