Downloading wrong file field when downloading files from Data Service

Hi,

I have an app where users can download either a zip file or a PDF for a company. These files are stored as File fields in the data service, which the app connects to. I use a download only file picker to allow users to download either file from the currently selected record in a table.

However, when I download one of these files (the zip, for example), all the other file pickers will also download the record’s zip instead of their corresponding fields in the record. This issue persists across records, so I only get zip files from all the file pickers and records onwards. If I refresh the page and download a PDF using the PDF file picker, then all the file pickers will only provide that PDF file again. In short, using a file picker to download a file from the data service locks all other file pickers to always download the same field.

Fixes I’ve tried:

  • The files are set up per record properly in the data service. I can download the respective file types correctly from there.
  • The file pickers have the correct value bindings. They are not duplicates, as the same file picker can provide a different record field if I refresh the page as mentioned before.
  • The file pickers display the correct filename. Hovering over them shows that the PDF and zip file pickers do have the correct files associated with them, but are downloading the wrong field.

I’ve attached a gif showing the problem. Any ideas?

dataservice

Are you downloading correct file on click?

Hi @tomas.borsje , I tried replicating your scenario and I am able to get the appropriate file in each of the file pickers. Can you please share the app file for us to understand the issue? I suspect an incorrect configuration.

Apologies on the delayed response.

1 Like

Hi,

Thanks for your response; no worries about the delay. Since posting, the issue appears to have resolved itself with little change on our end. Not sure if it was just the data service acting up or something, but it’s no longer an issue.

Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.