Download the PHP package adsoftteam/uploadimage without Composer
On this page you can find all versions of the php package adsoftteam/uploadimage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package uploadimage
UploadImage v2.0.3
For Laravel 6.x / 7.x / 8.x
This package give you next opportunities:
- Easy upload image file to the content type folder
- Create thumbnails for your image
- You can easily load image for any content type from disk (original or thumbnail image)
- You can easily delete your image from disk
- You can easily delete all images from your body text where images with relative links
- You can easily creating preview image without storage image on the disk
- You can use ajax for easily upload/delete image in your WYSIWYG editor
- You can easily add a watermark on your images
-
You can storing your images on the disk or in the DB in the Base64 format
History:
- v2.0.3 - Add method uploadFile for loading no image files
- v2.0.2 - Fix error str_random() -> replase Str:random() for Laravel 6.x and greater
- v2.0.1 - Thumbnails can assign in method: upload($file, $contentName, $watermark = false, $video = false, $thumbnails = false)
- v2.0 - Support Laravel 5.5
- v1.0.70 - Add to config 'watermarkEditorStatus' for WYSIWYG editors. Change UploadImageController
- v1.0.61 - Get real image extension.
- v1.0.50 - You can disable or enable watermark. See example below.
- v1.0.5 - Fix check file on image.
- v1.0.4 - Refactoring all code. Add exceptions, change arrays to methods. Fix some bugs.
- v1.0.3 - Fix some bugs.
- v1.0.2 - replace functional for show image preview in form, method upload return error with status if image width < image width in settings file
- v1.0.1 - fix some bugs
Requirements
- spatie/laravel-glide
- php gd library
Install package
Add package to your project:
Add to file config/app.php next entries:
Section Providers:
Section Facades:
Enter next command to a terminal:
Will be copied two files:
config/upload-image.php - this is settings for UploadImage package
resources/assets/js/upload_image_preview.js - you should include this file to elixir/mix:
Open file webpack.mix.js and add upload_image_preview.js to the array. For example:
After execute command in terminal (for production):
For Controller where you want use UploadImage add namespace Facade:
If you want see preview image after selected image in the file input field then wrap your file input field in the next code:
You can use next methods:
Upload you image to disk from file form:
For example: Add to your controller
Upload you file to disk from file form:
For example: Add to your controller
Delete your image from disk:
For example:
Delete your image from body text:
For example:
Load your image from disk:
For example:
Get preview image in Base64 format:
For example:
You can use next routes:
For example: