Upload and save image refreshes screen

On a complex page we want to let the user upload and preview an image. To avoid some issues we want to save the image directly after upload so we can get it from the database and show it.

We are able have a customised upload button, that after the upload calls an action (by clicking an hidden button with method submit) to save the image in the database.

Our problem is that this action triggers a page refresh, and this causes us some problems. Any idea how to avoid this refresh?


Im attaching a .oml file example of the problem.

Hi Bruno

You have the Multi File Upload component on the forge that allows you to do that without refreshing the page and you can also customize the upload button: https://www.outsystems.com/forge/component-overview/200/multiple-file-upload

Bruno Silva wrote:


Every time you refresh the page, the image (or video etc.) will be reloaded and make your app slowly.


About the issue, could you change from a refresh to AJAX instead?

On a complex page we want to let the user upload and preview an image. To avoid some issues we want to save the image directly after upload so we can get it from the database and show it.

We are able have a customised upload button, that after the upload calls an action (by clicking an hidden button with method submit) to save the image in the database.

Our problem is that this action triggers a page refresh, and this causes us some problems. Any idea how to avoid this refresh?


Im attaching a .oml file example of the problem.