Image upload file url

hi,

is it possible to display image via URL > FILE UPLOAD > URL? instead of via image component.

coz i want to display both image and video uploaded via file picker.

Hi @arkimark,

You can put any URL with image as a source for Image component.

Best,
Victor.

1 Like

image
hi victor,

im trying to link an image uploaded from FILE PICKER via image URL, but its not working.

@arkimark to start with, it is not the best practice to use URL from any picker as a source of image - there is no guarantee this URL will remain available forever (this is a picker, not a storage).
I would suggest that first you store the image / file to the collection, and then use URL as a source.

Also, if you click on “URL” on the screenshot you’ve provided, you will see a input box below, where you can put any URL you want, also using the magic text.

Best,
Victor.

1 Like

yes, the file is stored in a collection. the intention is for the user to upload a file (image OR video) and show both on the screen via image AND video component (with visibility settings).

image component > show only if the filename contains ‘jpg’
video component > show only if the filename contains ‘mp4’

@arkimark here is the example:



1 Like

You can create custom list and show / hide components based on the upload type.

1 Like

unfortunately, its not working on my side.

its works with IMAGE LIST component. but not working on custom list (image + video).

@arkimark just checked - Video works but Image does not.
You might want to submit a ticket for that - as for me this is an Adalo bug.

A workaround (as usual :frowning: ) could be adding an additional property to indicate whether it’s image or video and store image/video in a different database properties when uploading.

Best,
Victor.

1 Like

for the meantime, I added image property in the collection. now, users have choose between 2 inputs; image or video.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.