Download the PHP package sdtech/file-uploader-laravel without Composer
On this page you can find all versions of the php package sdtech/file-uploader-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package file-uploader-laravel
file-uploader-laravel | A Library to upload image and file with validation.
- About
- Requirements
- Installation
- Configuration
- Uses
About
A lightweight, framework-friendly Laravel package to validate and upload images/files with zero headaches. Now supports three upload targets out of the box: local storage, public folder, and Amazon S3. Image operations (resize, format conversion, quality) are handled via Intervention/Image.
Current features:
- Upload to local storage (
storage/app/public) - Upload to public folder (
public/) - Upload to Amazon S3 (via Flysystem S3 adapter)
- Image validation, resizing, and format conversion (webp/png/jpeg/gif/bmp)
- Simple, consistent response structure
Requirements
Installation
-
From your projects root folder in terminal run:
-
In config/app.php, add it:
- Publish the packages views, config file, assets, and language files by running the following from your projects root folder:
configuration
- Go to your config folder, then open "fileuploaderlaravel.php" file
- here you must add that info or add the info to your .env file .
For S3 uploads, ensure your application's config/filesystems.php has the s3 disk configured.
The following dependencies are installed automatically when you install this package:
- league/flysystem-aws-s3-v3
- aws/aws-sdk-php
If anyone faces any issues to install it, you can use:
Example env:
- run this command
Uses
- We provide a sample code of functionality that will help you to integrate easily
some functions
upload image in storage folder
upload image in main public folder
upload image to s3
upload file in storage folder
upload file in public folder
upload file to s3
delete file path
get file view path for storage folder
get file view path for public folder
get allowed image type
get allowed file type
All versions of file-uploader-laravel with dependencies
ext-mbstring Version *
intervention/gif Version ^4.1
intervention/image Version ^3.6
league/flysystem-aws-s3-v3 Version ^3.0
aws/aws-sdk-php Version ^3.0