Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello, I'm creating a website for mobile use where the user can pick an image from the build in 'Gallery' function (on android an ios) Someone says have to include <input type="file" id="fileinput" accept="image/*"> <img id="previewImage" style="max-width: 100%; margin-top: 10px;"> How can I include this in the html code Thanks in advance, Michel |
||||
|
You can try it with the file upload component. Add it (https://www.ambiera.com/rocketca...), right click the file input field, select HTML code -> additional attributes, add accept="image/*" (note the space at the beginning!) For the preview image, add an image element and some javascript which sets the image source in the handler. |
||||
|
|