NetTalk Central

Author Topic: How to display image after Upload  (Read 5291 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
How to display image after Upload
« 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

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to display image after Upload
« Reply #1 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.
« Last Edit: November 08, 2018, 04:37:37 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

miasoft

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: How to display image after Upload
« Reply #2 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"
« Last Edit: September 12, 2019, 07:22:47 PM by miasoft »

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to display image after Upload
« Reply #3 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
« Last Edit: September 13, 2019, 05:51:38 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11