erik404 / jafu
Simple file uploader and MIME-type validation class for PHP >=5.6
v1.0.1
2017-05-05 04:19 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^6.1
This package is auto-updated.
Last update: 2024-04-29 04:10:58 UTC
README
v1.0.1
Jafu
"Just Another File Uploader"
Standalone file uploader and file validator class. Guarantees unique name. Can handle multiple optional file-upload inputs. Validates MIME-type against configurable allowed types.
-
configuration:
1. Rename config.dist.php to config.php 2. Change the value of 'defaultSaveLocation' in config.php to the default save location on your system 3. [OPTIONAL] Change the response/error messages in config.php PHP : >=v5.6.0 Composer: composer require erik404\jafu
See example.php for oversimplified example code explaining the public functions.
All suggestions and comments are welcome!