Download the PHP package codad5/file-helper without Composer
On this page you can find all versions of the php package codad5/file-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codad5/file-helper
More information about codad5/file-helper
Files in codad5/file-helper
Package file-helper
Short Description FIle Uploader is a php package to aid fast , easy and safe file upload
License MIT
Informations about the package file-helper
FILE UPLOADER
FIle Uploader is a php package to aid fast , easy and safe file upload
installation
Features
- Fast and easy to use with method chaining
- Good error management
- Safety management
- works for both multiple file upload and single file upload
Usage
index.php
upload.php
test - the name given to the $_FILES array by default - for refrence $_FILES['test]`
uploads/ - Upload path relative to upload.php
To add allowed extension
To set File Prefix
To set max and min size
10000 - This is the maximum file size allowed, to ignore for your .ini config set it to null
20 - This is the minimum file size allowed default equals 0
Turing on/Off Error reporting
- The first param
$file_erroris to report error imbounded in file from request as found in$_SERVER['test'] - The second param
$size_erroris to report size related error depending on your settings - The Third param
$type_erroris to report error if a file is not part of the allowed fileNOTE: If any is
falseand error is found it will ignore the file and continue upload with out the file
Moving the file
Get Uploaded file path
- This returns a multi-dimensional array of each array with the following key
uploaded_path- The final uploaded file with path relative to the script tagupload.phpname- The name of the filesize- The size of the filetype- The file Typeext- The file extension
Method Chaining
This documentaion will be updated in time as the project grows for enquire and more information contact me here
Built with 💗 by Chibueze Michael A.
All versions of file-helper with dependencies
php Version >=7.1