NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on October 30, 2018, 07:33:49 AM

Title: How to display image after Upload
Post by: osquiabro on October 30, 2018, 07:33:49 AM
i'm trying to display a image after upload with example 26 but don't work, after upload the image is blank, another  problem  is when change a image via upload the path an image appear in a header after save..

the fileupload example is attached
Title: Re: How to display image after Upload
Post by: DonRidley on November 08, 2018, 04:11:28 AM
2nd question first..

The image path is displayed in the browse because you have a variable in either or both the Field or Display setting.  If you leave these blank and just use an equate then the image path will not be displayed.  The image itself will still be displayed through the Image settings.

1st question:

I would play around with executing the refresh::yourimagefield routine after the file is uploaded.

You could also use JavaScript to force a refresh but that's probably overkill.
Title: Re: How to display image after Upload
Post by: miasoft on September 12, 2019, 08:35:35 AM
Hi!

I don't understand where I must embedd  DO refresh::yourimagefield?

"I would play around with executing the refresh::yourimagefield routine after the file is uploaded"
Title: Re: How to display image after Upload
Post by: DonRidley on September 13, 2019, 04:25:16 AM
Example App Attached - C11, NT 11.21

I also created a video demonstrating what I did to make this work.  I wasn't sure if you have Clarion 11.

https://youtu.be/5-NtVdRGk9U (https://youtu.be/5-NtVdRGk9U)