20/03
2018
Wallogit.com
2017 © Pedro Peláez
Simple file upload that will elegantly move a file and return a progress response upon completion.
Simple File Uploader helper class., (*1)
if (isset($_FILES)) {
try {
$f = FileUpload::upload(
$_FILES,
'path/wher/to/save/file',
array('jpeg')
);
} catch (Exception $e) {
//manage exception
}