cloudinary-community / cloudinary-laravel

Laravel SDK for Cloudinary
MIT License
275 stars 71 forks source link

Upload file .docx or xlsx always converted to tmp file #135

Open nurrahmadws opened 4 days ago

nurrahmadws commented 4 days ago

$file_documentt = $request->file('documentt');

$cloudinaryImage = $file_documentt->storeOnCloudinary('folder_name');
$url_doc = $cloudinaryImage->getSecurePath();
$public_id_doc = $cloudinaryImage->getPublicId();

basicly this code for storing file with extension .docx or .xlsx what i'm supposed to change so that file with extension .docx or .xlsx won't turn into format tmp file?

joshmanders commented 3 days ago

Forgive me for not understanding, but isn't cloudinary for images and videos not for documents?

I'll ping @colbyfayock to clarify this.

brad-j commented 3 days ago

You can upload pretty much anything to Cloudinary. Non image and video files are treated as "Raw" and don't include a preview in the Media Library (UI).

https://cloudinary.com/documentation/cloudinary_glossary#raw_asset

colbyfayock commented 3 days ago

what brad said :)

joshmanders commented 2 days ago

Okay cool, thanks for clarification. Marked this as a bug.