Download the PHP package stechstudio/laravel-upload-server without Composer
On this page you can find all versions of the php package stechstudio/laravel-upload-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stechstudio/laravel-upload-server
More information about stechstudio/laravel-upload-server
Files in stechstudio/laravel-upload-server
Package laravel-upload-server
Short Description A robust Laravel backend for handling FilePond uploads with large file chunking support
License MIT
Homepage https://github.com/stechstudio/laravel-upload-server
Informations about the package laravel-upload-server
Laravel Upload Server
A robust backend for handling file uploads, batteries included. Supports large chunked uploads. It is currently built for FilePond with planned support for Uppy.
Installation
You know the drill:
Quickstart
1. Add the route
In your routes file add:
Note that this Route can be put inside a Route::group()
, and you can also chain additional route details.
You will now have a route setup named upload-server
using your default backend. Point your client-side upload integration to this endpoint.
Any file uploads sent to this endpoint will be handled for you and saved at the configured path.
2. Retrieve the saved files
Now when your form is submitted, take the UUIDs and retrieve the saved files:
You will receive back an array of File
objects if there were multiple files submitted, otherwise you will have a single File
instance.
3. Wrap up
You can now simply move the uploaded files to a permanent location, store details in a database, etc.
That's it, seriously.
License
The MIT License (MIT). Please see License File for more information.