PHPackages                             udhuong/laravel-upload-file - 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. udhuong/laravel-upload-file

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

udhuong/laravel-upload-file
===========================

Package for upload file

00PHP

Since Jul 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/udhuong/laravel-upload-media)[ Packagist](https://packagist.org/packages/udhuong/laravel-upload-file)[ RSS](/packages/udhuong-laravel-upload-file/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-Upload-File
===================

[](#laravel-upload-file)

Laravel-Upload-File is a package for uploading files with Laravel.

Features
--------

[](#features)

- Filesystem-driven approach is easily configurable to allow any number of upload directories with different accessibility. Easily restrict uploads by MIME type, extension and/or aggregate type (e.g. `image` for JPEG, PNG or GIF).

Example Usage
-------------

[](#example-usage)

Upload a file to the server, and place it in a directory on the filesystem disk named "uploads". This will create a Media record that can be used to refer to the file.

```
$file = LaravelUploadFile::fromSource($request->file('images'))
	->toDestination('s3', 'uploads')
	->upload();
```

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

[](#installation)

Add the package to your Laravel app using composer

```
composer require udhuong/laravel-upload-file
```

Register the package's service provider in `config/app.php`. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.

```
'providers' => [
    ...
    Udhuong\LaravelUploadFile\UploadFileServiceProvider::class,
    ...
];
```

The package comes with a Facade for the image uploader, which you can optionally register as well. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.

```
'aliases' => [
	...
    'FileUploader' => Plank\Mediable\FileUploader::class,
    ...
]
```

Publish the config file (`config/mediable.php`) of the package using artisan.

```
php artisan vendor:publish --provider="Udhuong\LaravelUploadFile\UploadFileServiceProvider"
```

Documentation
-------------

[](#documentation)

Updating...

License
-------

[](#license)

This package is released under the MIT license (MIT).

About package
-------------

[](#about-package)

Package developed based on laravel-mediable of [plank/laravel-mediable](https://github.com/plank/laravel-mediable)

About author
------------

[](#about-author)

[Plank](http://ungdinhhuong.com) is a web development agency based in Hanoi, Vietnam.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bc5b29467b4076de83f530bdc8822d6355c180464dcaf407e081eadc135921a?d=identicon)[udhuong](/maintainers/udhuong)

---

Top Contributors

[![ungdinhhuong](https://avatars.githubusercontent.com/u/27007228?v=4)](https://github.com/ungdinhhuong "ungdinhhuong (3 commits)")[![huongung](https://avatars.githubusercontent.com/u/100741910?v=4)](https://github.com/huongung "huongung (1 commits)")

### Embed Badge

![Health badge](/badges/udhuong-laravel-upload-file/health.svg)

```
[![Health](https://phpackages.com/badges/udhuong-laravel-upload-file/health.svg)](https://phpackages.com/packages/udhuong-laravel-upload-file)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
