What I’m trying to do:
I am trying to get the url from a file uploader and message the url out. Everything I tried so far has resulted in “none”. I might be doing something obviously wrong but I cannot seem to understand why its not displaying the url of the image? It is displaying as a image on the screen but not the url when i ask for it.
the image does get saved in the database. I just want to pull the url from the image on display or in the file uploader. It really doesnt matter at that point.
What I’ve tried and what’s not working:
def button_save_click(self, **event_args):
"""This method is called when the button is clicked"""
self.image_uploadedFile.source = self.file_loader_Office.file
imgUrl = self.file_loader_Office.file.url
anvil.server.call('saveFile',imgUrl)
alert(imgUrl)
#self.text_area_chatGPTOutput.text = anvil.server.call('definingPicture',imgUrl)
pass
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
Clone link:
share a copy of your app