New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ibox/uploader

File uploader for laravel framework.
45
Install
composer require ibox/uploader
Latest Version:1.0.0
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Feb 23, 2016
Links: GitHub  ·  Packagist
Maintainer: juanem1

Laravel File Uploader

This package take advantage of the Laravel Filesytem library.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require ibox/uploader

"require": {
    "ibox/uploader": "~1.0"
}

Next, update Composer from the terminal:

composer update

Configure

In config/filesystems.php update default key. This library will upload all files to the default option. If you are uploading locally also update the root key to define were the files will be stored.

Usage

Example:

In your HTML:

<form action="/images" enctype="multipart/form-data" method="post">
	<input type="file" name="image" multiple="multiple" required />
    <input type="submit" value="Upload" />
</form>

In your controller:

<?php

use Ibox\Uploader\Uploader;
class ImagesController extends Controller 
{

	public function store(Request $request, Uploader $uploader)
    {
        $path = 'some/path';
        $imageNames = $uploader->upload($request->file(), $path);
    }

}

NOTE: The secong parameter ($path), will only work for cloud storage, check config section.

Next features

Enable queue to faster responses.

License

This package is open source software licensed under the MIT license

Related Packages

onethirtyone/laravel-s3-migrate

A Laravel package to migrate from local storage to Amazon S3

9,788 6
hitesh399/laravel-media

Laravel Media Popup to upload/view the files

1,799 1
r3k4/ck-storage

A simple cloudkilat storage s3 class for laravel

88 1
czim/file-handling

File Handling Helper

902,512 15
customergauge/minio

Faking S3 storage with Minio

25,358 3

Version History

Version Released PHP Laravel License
1.0.0 >=5.4.0 ~5.0 MIT