huydevct / media-storage
There is no license information available for the latest version (1.1.6) of this package.
media storage package
1.1.6
2024-03-04 13:33 UTC
Requires
- php: ^7.3|^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.2
- intervention/image: ^3.3
- laravel/framework: ^8.75|^9.0.0|^10.0.0
- php-ffmpeg/php-ffmpeg: ^1.2
README
Config App
- add this line to service provider config/app.php
\Huy\MediaStorage\providers\MediaStorageServiceProvider::class,
- run this command to publish config
php artisan vendor:publish --tag=media_storage
# Vị trí file config config/media_storage.php
- add these lines to .env
IMAGE_MEDIUM= IMAGE_SMALL= IMAGE_EXTRA_SMALL= VIDEO_MEDIUM= VIDEO_SMALL=
- route of these api
http://localhost:8000/storage/images
http://localhost:8000/storage/videos
- you can replace your domain on
http://localhost:8000
- request accept form-data with key
file
orfiles
- this is a example of these apis' postman
curl --location 'http://localhost:8000/storage/images' \
--header 'Accept: application/json' \
--form 'file=@"your-file"'
- if you got nothing after call these apis, you need to remember add header
Accept: application/json