PHPackages                             virtualorz/fileupload - 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. virtualorz/fileupload

ActiveLibrary

virtualorz/fileupload
=====================

0.0.13(6y ago)0474HTML

Since Jun 26Pushed 6y agoCompare

[ Source](https://github.com/virtualorz/fileupload)[ Packagist](https://packagist.org/packages/virtualorz/fileupload)[ RSS](/packages/virtualorz-fileupload/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (14)Used By (4)

Usage
=====

[](#usage)

Use for bootstap and Laravel project to upload file
Use Laravel storage to store upload files
This project require PHP imagick extension to save thumb and fit jpg file

Install
=======

[](#install)

```
composer require virtualorz/fileupload

```

Config
======

[](#config)

edit config/app.php

```
'providers' => [
    ...
    Virtualorz\Fileupload\FileuploadServiceProvider::class
]

'aliases' => [
    ...
    'Fileupload' => Virtualorz\Fileupload\Facades\Fileupload::class,
]

```

Publish data
============

[](#publish-data)

```
php artisan vendor:publish --provider="Virtualorz\Fileupload\FileuploadServiceProvider"

```

Edit .env
=========

[](#edit-env)

edit .env file add UPLOADDIR for dir name to save files under public dir
edit .env file add FILESYSTEM\_DRIVER=public

Edit config/filesystems.php
===========================

[](#edit-configfilesystemsphp)

edit the 'disks' area, replace the 'public' to

```
'public' => [
            'driver' => 'local',
            'root' => public_path('uploads'),
            'url' => env('APP_URL').'uploads',
            'visibility' => 'public',
        ],

```

Usage
=====

[](#usage-1)

```
In view:

And need an file element like :

accept attribute can edit to the file type you want
multiple attribute can let you upload multiple files
data-size is to check image size
data-is_image set upload is image or not

And after file element call {!! Fileupload::createUploadArea('UPLOAD_COLUMN_NAME',$files)!!}
UPLOAD_COLUMN_NAME can edit to the column name you need

In controller
use $request->get('upload_file') to get upload files array

```

Method
======

[](#method)

###### createUploadArea($column\_name = '','$files = null)

[](#createuploadareacolumn_name--files--null)

`return bload html for view to generate file upload html area, in edit mode you can put the uploed file to $files variable`

###### createUploadResult($files = null)

[](#createuploadresultfiles--null)

`return bload html for view to generate file upload Result html area, use in detail page you can put the uploed file to $files variable`

中文版本文件
======

[](#中文版本文件)

[Fileupload : 快速產生檔案上傳介面及管理](http://www.alvinchen.club/2019/07/03/%e4%bd%9c%e5%93%81laravel-package-fileupload-%e5%bf%ab%e9%80%9f%e7%94%a2%e7%94%9f%e6%aa%94%e6%a1%88%e4%b8%8a%e5%82%b3%e4%bb%8b%e9%9d%a2%e5%8f%8a%e7%ae%a1%e7%90%86/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~4 days

Total

13

Last Release

2467d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5a1de7b6118aabaf7e63eea7d43887a49b7c617296007066406b5004364e9c1?d=identicon)[virtualorz](/maintainers/virtualorz)

---

Top Contributors

[![alvin-js](https://avatars.githubusercontent.com/u/59727853?v=4)](https://github.com/alvin-js "alvin-js (15 commits)")

### Embed Badge

![Health badge](/badges/virtualorz-fileupload/health.svg)

```
[![Health](https://phpackages.com/badges/virtualorz-fileupload/health.svg)](https://phpackages.com/packages/virtualorz-fileupload)
```

PHPackages © 2026

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