Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nurrahmadws opened this issue Oct 15, 2024 · 4 comments
Open

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

nurrahmadws opened this issue Oct 15, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@nurrahmadws
Copy link

$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
Copy link
Collaborator

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

I'll ping @colbyfayock to clarify this.

@joshmanders joshmanders added the question Further information is requested label Oct 15, 2024
@brad-j
Copy link

brad-j commented Oct 16, 2024

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
Copy link
Collaborator

what brad said :)

@joshmanders joshmanders added bug Something isn't working and removed question Further information is requested labels Oct 16, 2024
@joshmanders
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants