Skip to main content

Hi,    I'm setting up an experience site that allows a guest user to upload files through a screen flow. The upload works fine when I'm testing on a laptop as a guest user, but when I'm running the flow through a browser on my iphone, I'm able to select photos or files, and the flow enters the file upload window, but every file fails to upload without further explanation. I have no specific file types or size limits set. Any ideas on why uploading from a mobile device (connected to wifi) would be failing?     

4 answers
  1. Jun 19, 12:42 PM

    Greetings @Adam Rycroft 

     

    I think this might be a permissions issue. 

     

    Ensure your Guest User Profile (or Guest Permission Set) and org settings have the following configured: 

     

        Setup -> General Settings (under Salesforce Files): Make sure "Allow guest users to upload files" is checked. 

     

        Object Permissions: Grant Create and Read access on the specific object of the Related Record ID you are passing into the component. 

     

        Sharing Rules: Ensure there is a Guest Sharing Rule that explicitly grants the guest user access to that specific record ID. If the guest user doesn't legally "own" or have access to that record on mobile, the file injection will fail instantly. 

     

    Also, is your flow running in User or System Context? Go to your Flow's version settings (click the gear icon next to the Save/Activate buttons in the Flow Builder), click Show Advanced, and check How to Run the Flow. 

     

    Note:

    If changing this to System Context solves your problem, it does introduce some security risks for public guest users, so you will want to add some validation criteria inside the flow to secure it further

     

    Be well - Katende

0/9000