+ 1

File adding via javascript. I need help.

Hello everybody! I need help. I created a gallery of images with the ability to add new users pictures. How to do so after clicking on the button will be opened the window, where the user can select a picture and added to the gallery? How to do it using javascript? Galleries created in html, css and javascript. Thanks your advice.

19th Feb 2017, 6:17 PM
Kateryna Komareus
Kateryna Komareus - avatar
2 odpowiedzi
+ 15
<input type="file"> (not sure about js though, use toDataURL(); to read......)
19th Feb 2017, 6:21 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
ValentinHacker, thank you so much. I'll try it.
19th Feb 2017, 6:30 PM
Kateryna Komareus
Kateryna Komareus - avatar