111
Views
5
Comments
[ImageGallery] Images
Question
Forge component by Carlos Sousa
1
Published on 01 Jun 2020

Hi, can someone tell me how I import images into the gallery?


Rank: #56

It seams that you have to upload them to the file systems and update the inputs of the gallery object.

Staff
Rank: #259

You can upload the images you want and store them in the database. The file system would not be a viable solution because it would fail whenever you have more than 1 frontend.


You can then create a webscreen that ends with a download widget and by doing that you are now back to the scenario where you have a url to use in the gallery.

mvp_badge
MVP
Rank: #6

Hi Steve,

The file upload has a property that you can access in an screen action. It's the content. It's already a binary. Just save to database to a binary field.

Cheers

Eduardo Jauch

Champion
Rank: #44

Hi Backer,

You need to use file upload then you can access in action where you get binary data and filename from the file upload. Just save the image in some folder then save title, description and image path in the database.

Now, on the screen where you want image gallery to display just get all records from the database and bind the record list with the image gallery component. It will work and display your image gallery.

Regards

Rajat Agrawal