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

Image Edit / Upload #13

Closed
heppi75 opened this issue Aug 23, 2018 · 6 comments
Closed

Image Edit / Upload #13

heppi75 opened this issue Aug 23, 2018 · 6 comments

Comments

@heppi75
Copy link

heppi75 commented Aug 23, 2018

Is it possible to make an image upload for the images used in the templates? How can I edit the images? If I paste in a new Url for the image, it is not shown?

@givanz
Copy link
Owner

givanz commented Aug 23, 2018

Hi

I added upload option for image input that sets the image as a blob.
To set the image path you need to upload the image on your website and use the url (ex http://mydomain/myimage.png)

To add a image gallery navigator that let's you browse/upload images on your server you will also need to have backend support, I will try adding a simple php example in the future.

@heppi75
Copy link
Author

heppi75 commented Aug 24, 2018

Hi,

thanks for your reply. I can't find the image input that sets the image as blob? If I put the bootstrap image component on the site. How can I define the Image that should be used. I can not drag an Image to the container, nothing happens? It would be very helpful for me if you could explain it.

Thank you ...

@givanz
Copy link
Owner

givanz commented Aug 24, 2018

Hi

I updated the demo and pushed the code to github, when clicking on an image the input for image besides text input for image src attribute will also have upload button input.

image_upload

@heppi75
Copy link
Author

heppi75 commented Aug 24, 2018

Hi,

now I can see the Button. Thank you. But it is not an ideal solution with the blob image. In wich file is this upload functionality defined? Maybe I could change this myself to an image upload with php solution.

@givanz
Copy link
Owner

givanz commented Aug 24, 2018

I added server upload support in the last commit, to enable it remove

return;//remove this line to enable php upload

from inputs.js to enable php uploading and also copy upload.php to your http server.

@heppi75 heppi75 closed this as completed Aug 25, 2018
@oleteacher
Copy link

oleteacher commented Aug 31, 2018

Image upload is working, much appreciated.

Have issue I cannot solved though.

When the image is uploaded, the upload path is echoed into the "Alt, Height and Width" fields? Also echoed into the left side search field?

Any ideas how to stop this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants