21 lines
No EOL
381 B
PHP
21 lines
No EOL
381 B
PHP
<?php
|
|
/**
|
|
* Upload - Handles uploading files
|
|
*
|
|
* Takes an upload request from jquery.filedrop and stores the incoming
|
|
* files on the server for later viewing.
|
|
*
|
|
* @author Andrew Tomaka
|
|
* @version 1
|
|
**/
|
|
|
|
define('UPLOADS','uploads/');
|
|
|
|
if(array_key_exists('file', $_FILES)) {
|
|
$file = $_FILES['file'];
|
|
|
|
move_uploaded_file($file['tmp_name'], UPLOADS . $file['name']);
|
|
}
|
|
|
|
|
|
?>
|