Download the PHP package oldravian/multi-source-file-uploader without Composer
On this page you can find all versions of the php package oldravian/multi-source-file-uploader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oldravian/multi-source-file-uploader
More information about oldravian/multi-source-file-uploader
Files in oldravian/multi-source-file-uploader
Package multi-source-file-uploader
Short Description A Laravel package for handling file upload from multiple sources like file object, url or base64 encoded data
License MIT
Informations about the package multi-source-file-uploader
Multi Source File Uploader
A Laravel package for handling file upload from multiple sources like file object, url or base64 encoded data
Current Features
- file uploading from multiple sources like file object, url or base64 encoded data
- file validation (based on extension and size)
- support for handling multiple files
Upcoming Features
- file compression
- support for file deletion
Requirements
It is recommended to install this package with PHP version 7.2+ and Laravel Framework version 5.5+
Installation
Configuration
Copy configuration to your project:
By executing above command the package configuration will be published to config/old-ravian-file-uploader.php
Usage
Firstly, you need to initialize the specific FileUploader instance using
Upload File From Object
In your controller method:
$uploadSettings is an asociative array with the following possible keys:
- : the root directory containing your uploaded files
- : the storage disk for file upload. Check Laravel official documentation for more details, e.g: ,
- (in bytes): the maximum size of an uploaded file
- : array of acceptable file extensions, e.g:
The backend default settings are as follows:
You can change these default settings by using the following environment variables in .env:
- (in bytes)
If the upload succeeds, will return the following data for being further persisted to database:
If the uploaded file is not valid, then will be returned and an error message will be set for