Is it possible to delete the original files after image conversion using Spatie Media Library (v7) - for example, the client uploads huge resolution files, but we only need them about 1000px wide and dont want to store the huge originals.
Cheers in…
I try to create a new laravel app via the laravel installer with laravel new .
This works without a problem. Once I try to install the spatie/medialibrary I get the following error that I cannot explain:
$ composer require…
I'm trying to upload a file in my Laravel 9 application. On the localhost, it works just fine, however, the same action fails when I try it from my application running on an Amazon Linux EC2.
What I know:
The action does not throw any exceptions,…
I am having trouble displaying the images uploaded using spatie media library. I already looked in their documentation but I can't find a solution.
I had no issue uploading files (single file only).
The Database Media Table
Controller @…
with spatie/medialibrary package i have 3 conversions in registerMediaConversions method like this
public function registerMediaConversions(Media $media = null): void
{
$this->addMediaConversion('thumb')
->fit(MANIPULATIONS::FIT_STRETCH,…
I would like to rename a collection of uploaded files, but when I use addAllMediaFromRequest() I can't retrieve information from the files.
In this example; I need to know the file extension in order to rename the file.
$files =…
I am trying to use the spatie "laravel-media library 10" with laravel 9 and models using uuids.
The media will be attached to the users. So my user class is :
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
class User…
I am using Laravel 8 and I was wondering if there is anyway to automatically delete original image after it has converted in Spatie Media Library? it's currently taking up my storage space so I want to be able to delete original images.
here's the…
I have this error while using the MediaLibrary package
Interface 'Spatie\MediaLibrary\HasMedia' not found
Trait 'Spatie\MediaLibrary\InteractsWithMedia' not found
My project details :-
php : 7.3.22
laravel : 7.28.3
I have tried follow the…
I am using spatie/laravel-medialibrary:8.0.
When I uploaded file, it was saved in storage/public directory.
1/filename.file_extension, 2/filename.file_extension...
I think 1, 2... are ids of files.
Is there any way to put different prefix directory…
Is anyone using Laravel package spatie/media-library with Cloudinary?
I thought implementing it would be trivial with flysystem.
I'm actually using Cloudinary as a Nova field with silvanite/nova-field-cloudinary and it works great but I have a need…
Trying to use Laravel Nova with Spatie Media Library. I created upload field like this:
Image::make('Logo')
->store(function (Request $request, $model) {
$model->addMediaFromRequest('logo')->toMediaCollection('manufacturers');
…
I'm using a third-party package which manipulates images. For basic conversions it accepts a single value:
$image = $this->addMediaConversion('thumb');
$image->width(100);
$image->height(100);
The system I am building has a level of abstraction…
I'm a bit stuck wondering what I'm doing wrong.
I'm trying to use the spatie/laravel-medialibrary & ebess/advanced-nova-media-library together with nova-flexible-content
In nova it works wonderful but can't get the image show in my blade. If anybody…