Category : cloudinary

In laravel 8 app I need to upload images from local storage into cloudinary ( with cloudinary-laravel 1.0) with code like : Storage::disk(‘cloudinary’)->put(‘cl_filename.ext’, Storage::disk(‘local’)->get(‘local_filename.ext’)); But I got error: This driver does not support retrieving URLs. having in env file: CLOUDINARY_URL="cloudinary://XXXXXXXXXXX:[email protected]" CLOUDINARY_UPLOAD_PRESET=ml_default CLOUDINARY_NOTIFICATION_URL= CLOUDINARY_ROOT_DIRECTORY=TAdsMedia CLOUDINARY_API_KEY=XXXXXXXXXXX CLOUDINARY_API_SECRET=XXXXXXXXXXXXX CLOUDINARY_API_NAME=cloudinaryname When I use cloudinary methods like storeOnCloudinaryAs, it works ..

Read more

Well, what happens is that I want to upload an image to Cloudinary through Laravel, I Follow the steps as it says on the documentation: https://github.com/cloudinary-labs/cloudinary-laravel and here : https://cloudinary.com/blog/laravel_file_upload_to_a_local_server_or_to_the_cloud I am using Laravel 8, here is my code: public function store(Request $request){ $request->validate([ ‘name’ => ‘required|string|unique:festivals|max:255’, //unique:table ‘description’ => ‘required|string|max:255’, ‘image’ => ‘required|image|dimensions:min_width=200,min_height=200’, ], ..

Read more

In laravel 8 app I need to upload images from local storage into cloudinary ( with cloudinary-laravel 1.0) and looking at description : // Store the uploaded file in the "lambogini" directory on Cloudinary with the filename "prosper" $result = $request->file->storeOnCloudinaryAs(‘lambogini’, ‘prosper’); How can I convert my storage path into uploaded request( $request->file ) ? ..

Read more

Saving images under cloudinary( with cloudinary-laravel 1.0) I keep public_id in my database and I want to get url(http or https), size, dimaentainal of this file by public_id At reading this /** * You can also retrieve a url if you have a public id */ $url = Storage::disk(‘cloudinary’)->url($publicId); at https://github.com/cloudinary-labs/cloudinary-laravel I got ERROR: Disk ..

Read more

Using cloudinary-labs/cloudinary-laravel vunder Laravel 8 app I try to upload file under subdirectory and custom file name I did not catch what is ->file parameter in sample: $result = $request->file->storeOnCloudinaryAs(‘lambogini’, ‘prosper’); as running the cope above I got error : Call to a member function storeOnCloudinaryAs() on null", Also I tried to run: $pageUploadedFile = ..

Read more

I wrote a code in Lumen to upload multiple images at once using cloudinary, but the code doesn’t work only the first image gets uploaded. $images = $request->file(‘picture’); $uploaded = []; foreach ($images as $image) { error_log(‘for statement fires.’); Cloudder::upload($image, null, [ ‘folder’ => ‘/dog-lovers’, ‘discard_original_filename’ => true, ]); $image_uploaded = Cloudder::getResult(); array_push($uploaded, $image_uploaded[‘url’]); } ..

Read more