Image not being saved in the database when uploading with the Upload widget.

Image not being saved in the database when uploading with the Upload widget.

  

Hei, 

I'm using the upload widget to add images to my Image table of my database. 

The all process goes fine, but when I view the data, no info (image) is recorded.

Need help Plz!!!

Hi Gael,

Can you provide the oml? 

Note: you need an action where you grab the selected file and save it to the database.


João Nobre wrote:

Hi Gael,

Can you provide the oml? 

Note: you need an action where you grab the selected file and save it to the database.


Hi Joao, please see OML


Solution

first, you need to do a submit otherwise you won't retrieve the data

(or use a different widget for uploading files)


2nd of all, you are not getting the image content from the widget.


Solution

J. wrote:

first, you need to do a submit otherwise you won't retrieve the data

(or use a different widget for uploading files)


2nd of all, you are not getting the image content from the widget.


Thanks for replying J.


How would you go about fixing that? Talking of getting the data from the widget to the form. (I'm new to outsystems by the way)


Hi,

You must set the Image to the UploadImage.Content, creating an assign:

Best regards,

João Nobre

Did you follow the online courses? I am pretty confident they tackle that issue?


J. wrote:

Did you follow the online courses? I am pretty confident they tackle that issue?



I did, but i dont remember to have watched anything talking about the upload widget.

João Nobre wrote:

Hi,

You must set the Image to the UploadImage.Content, creating an assign:

Best regards,

João Nobre


Thaks Joao, it seems to be working :).