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

How to get upload image link from widget "x-cld-upload-button" #95

Closed
mahmoudelgharabawi opened this issue Jul 22, 2023 · 4 comments · Fixed by #102
Closed

How to get upload image link from widget "x-cld-upload-button" #95

mahmoudelgharabawi opened this issue Jul 22, 2023 · 4 comments · Fixed by #102
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest

Comments

@mahmoudelgharabawi
Copy link

i try to use ""x-cld-upload-button" But i can't understand How i can get the link after i uploaded image i want the link so as i can store in my model >>> using "php laravel" i need more details or example to know how to use this ....

@unicodeveloper unicodeveloper added documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest labels Oct 2, 2023
@sccalabr
Copy link

sccalabr commented Oct 6, 2023

Id like to give this a try. Do you have a code pointer to what he was talking about in the issue?

@unicodeveloper
Copy link
Collaborator

@sccalabr Are you still interested in this?

The x-cld-upload-button calls the JavaScript widget that opens up the modal and then the file is uploaded to Cloudinary.

This is the code https://github.com/cloudinary-devs/cloudinary-laravel/blob/master/resources/views/components/button.blade.php

@unicodeveloper
Copy link
Collaborator

So we need a way to pass the link back to PHP and make it accessible for it to be stored anywhere.

@Delaney
Copy link
Contributor

Delaney commented Oct 12, 2023

Hey @unicodeveloper added this functionality. My implementation works fine, but I'm wondering if there's a cleaner way to go about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants