PHP code example of vbpupil / file-uploader
1. Go to this page and download the library: Download vbpupil/file-uploader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vbpupil / file-uploader example snippets
if (isset($_FILES)) {
try {
$f = FileUpload::upload(
$_FILES,
'path/wher/to/save/file',
array('jpeg')
);
} catch (Exception $e) {
//manage exception
}