PHPackages                             shoperti/uploader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. shoperti/uploader

ActiveLibrary[File &amp; Storage](/categories/file-storage)

shoperti/uploader
=================

Smart file uploader for Laravel

v5.8.0(5y ago)26.1k[1 PRs](https://github.com/Shoperti/Uploader/pulls)MITPHPPHP ^7.2CI failing

Since Aug 31Pushed 5y ago5 watchersCompare

[ Source](https://github.com/Shoperti/Uploader)[ Packagist](https://packagist.org/packages/shoperti/uploader)[ RSS](/packages/shoperti-uploader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (11)Used By (0)

Shoperti Uploader
=================

[](#shoperti-uploader)

[![CircleCI](https://camo.githubusercontent.com/ca2ba63cbb39163ecd0582a52bea65f937a7c3981fdff67b6190f178e61bdbe5/68747470733a2f2f636972636c6563692e636f6d2f67682f53686f70657274692f55706c6f616465722e7376673f7374796c653d73766726636972636c652d746f6b656e3d34613336356536356239386331383563313737383436396336613631386530353433303232313639)](https://circleci.com/gh/Shoperti/Uploader)

A file uploader for Laravel with support for preprocessing images (resize and auto orientation) using League/Glide.

Note: For auto orientation you must have a PHP installation that supports reading exif.

Installation
------------

[](#installation)

Add to composer

```
    "require": {
        "shoperti/uploader": "~5.8"
    },
```

Register the package in one of your providers

```
    public function register()
    {
        $this->app->register(\Shoperti\Uploader\UploaderServiceProvider::class);
    }
```

Configuration
-------------

[](#configuration)

You can configure it through the .env file using these settings:

```
UPLOADER_FILES_DISK=s3
UPLOADER_FILES_SUBPATH=files
UPLOADER_FILES_FILE_NAMING=fix

UPLOADER_IMAGES_DISK=s3
UPLOADER_IMAGES_SUBPATH=images
UPLOADER_IMAGES_FILE_NAMING=fix
UPLOADER_IMAGES_RESIZE_MAX_WIDTH=1280
UPLOADER_IMAGES_RESIZE_MEMORY_LIMIT=128M

```

- *Please refer to the [config file](config/uploader.php) for more details.*

Use
---

[](#use)

```
