2017 © Pedro Peláez
 

library laravel-file-uploads

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

image

vmorozov/laravel-file-uploads

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  • Saturday, December 23, 2017
  • by vmorozov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 187 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 12 Versions
  • 12 % Grown

The README.md

laravel-file-uploads

A package for convenient way to upload files to the different storages, (*1)

Installation

  1. Run the command below to add this package:
composer require vmorozov/laravel-file-uploads
  1. Open your config/app.php and add the following to the providers array:
Vmorozov\FileUploads\FileUploadsServiceProvider::class
  1. Run the command below to publish the package config file config/file_uploads.php:
php artisan vendor:publish

Configuration

Go to the file, (*2)

config/file_uploads.php

There you have an ability to set: 1. default storage to upload file (default is: local) 2. default image quality (default is: 100) 3. default folder to put your uploads (default is: public/user-uploads), (*3)

Usage

To upload file:

public function store(Request $request)
{   
    // This will upload your file to the default folder of selected in config storage
    Uploader::uploadFile($request->file('some_file'));

    // This will upload your file to the given as second parameter path of default storage
    Uploader::uploadFile($request->file('some_file'), 'path/to/upload');

    // This will upload your file to the given storage
    Uploader::uploadFile($request->file('some_file'), 'path/to/upload', 'storage_name');

    // This will also resize image to the given width and height
    Uploader::uploadFile($request->file('some_file'), 'path/to/upload', 'storage_name');
}

To upload base64 string of image:

public function store(Request $request)
{   
    // This will upload your file to the default folder of selected in config storage
    Uploader::uploadBase64Image($request->input('image'));

    // This will upload your file to the given as second parameter path of default storage
    Uploader::uploadFile($request->input('image'), 'path/to/upload');

    // This will upload your file to the given storage
    Uploader::uploadFile($request->input('image'), 'path/to/upload', 'storage_name');

    // This will also resize image to the given width and height
    Uploader::uploadFile($request->input('image'), 'path/to/upload', 'storage_name');
}

The Versions

23/12 2017

dev-master

9999999-dev

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

23/12 2017

v1.1.6

1.1.6.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

29/11 2017

v1.1.5

1.1.5.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

29/11 2017

v1.1.4

1.1.4.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

29/11 2017

v1.1.3

1.1.3.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

11/10 2017

v1.1.2

1.1.2.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

11/10 2017

v1.1.1

1.1.1.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

07/09 2017

v1.0.x-dev

1.0.9999999.9999999-dev

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

02/09 2017

v1.1

1.1.0.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

30/08 2017

v1.0.5

1.0.5.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

28/08 2017

v1.0.4

1.0.4.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads

26/08 2017

v1.0.3

1.0.3.0

This package provides a convenient way to upload files to the cloud storage amazon s3 or locally fast in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel s3 aws illuminate filesystems amazon s3 file uploads cloud uploads