Uploader

A Laravel library to provide file upload utilities. A Javascript library builds a complete file upload widget with upload button, drag-and-drop zone, progress bar and result builder. A controller is available to manage uploaded files. Project on GitHub. Project on Packagist. This demosite sources available here.

On this site, you can only upload files up to 1MB and having extensions png,jpg,jpeg,gif,txt. Files will be destroyed after 10 minutes.

Simple uploader

This uploader simply uploads files and then displays result in an alert div.

Basic uploader without drag and drop

Same settings as previous example, but drag and drop disabled.

Complete uploader

This uploader uses a result plugin which displays results in a nice list. After file upload, files are submitted to a second route, which could eg. register file in database.

Hidden uploader

This last example shows an uploader which uploads a single file. When a file has been uploaded, uploader is hidden. In this example, we show a file already uploaded into website. This file could be retrieved from database by an Ajax script. Then you can delete file - the uploader is shown again - and upload a new file.