Download the PHP package virtualorz/fileupload without Composer

On this page you can find all versions of the php package virtualorz/fileupload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fileupload

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

composer require virtualorz/fileupload

Config

edit config/app.php

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

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

Publish data

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

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 the 'disks' area, replace the 'public' to

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

Usage

In view:
<script src="{{ asset('vendor/fileupload/fileupload.js') }}"></script>
And need an file element like :
<input type="file" name="file" id="file" class="file_input" accept=".jpeg" multiple data-size="240*240" data-is_image="true">
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

createUploadArea($column_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)

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 : 快速產生檔案上傳介面及管理


All versions of fileupload with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package virtualorz/fileupload contains the following files

Loading the files please wait ....