ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > RocketCake
forum topic indicator Website for mobile device pick image from
person icon
micheldemeester
Registered User
Quote
2025-08-07 14:02:27

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

person icon
erik
Registered User
Quote
2025-08-07 22:13:50

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.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |