SF1, how to upload Images - "Cannot upload large files in lightning"

MansourMansour ✭✭✭✭
edited February 4, 2020 in Questions
A client is trying to use a Skuid Page to allow for mobile expense management.  When using the File Upload component and trying to upload an image, we are hit with a "Cannot upload large files in lightning" message (screenshot below).

Any ideas on how to get around this?


  • MansourMansour ✭✭✭✭
    edited November 3, 2017
    This is still an issue despite the upgrade to the new SF mobile app and Millau.
    Any ideas on how to fix?
  • Mark DeSimoneMark DeSimone 🛠️ 
    edited February 4, 2020
    Hi Mansour, how large are the files in question?
  • MansourMansour ✭✭✭✭
    edited November 7, 2017
    It's a photo from the phone. 
  • Mark DeSimoneMark DeSimone 🛠️ 
    edited February 4, 2020
    Hi Mansour. I wanted to let you know that I am still looking into the cause for this. It sounds like there is a limitation in Lightning to how Salesforce exposes the API that allows for this functionality. Do you have any flexibility to switch to Classic in your version of the SF1 app?
  • MansourMansour ✭✭✭✭
    edited November 21, 2017
    Thanks Mark - I'm not sure what you mean by "switch to classic" in SF1.  Could you elaborate please?
  • MansourMansour ✭✭✭✭
    edited December 11, 2017
    Have any updates been made to this issue?
    This is a major part of a mobile implementation we are working on.
  • Mark DeSimoneMark DeSimone 🛠️ 
    edited February 4, 2020
    Hello Mansour,

    This is still a limitation when running natively in Lightning Experience, you cannot upload files over 650kb in size. However, I've just found out that the workaround is to display Skuid in Visualforce within Lightning Experience.

    This approach can also be taken in SF1 Mobile App, meaning you can display Skuid in a Visualforce Tab and add that Visualforce Tab to Salesforce1.

    So, instead of using Skuid's Page component in your Lightning app, display your Skuid page in a Visualforce page. You can then bring that Visualforce page into Lightning via Salesforce's Visualforce component in the Lightning App builder. 
  • MansourMansour ✭✭✭✭
    edited December 14, 2017
    That totally worked.  Amazing - thank you so much Mark!
  • edited February 4, 2020
    We are all in on Lightning but have this issue with the upload. Any solutions to use Skuid File Upload within lightning? This is a major hurdle for us as we deal with a lot of attachments for records and need this functionality.
  • edited May 25, 2018
    We do not want to use the visualforce work around as we trying to keep everything within lighting app builder. Our File Upload function is within a Table drawer. So the attachments parent id is a Child Record of Page record. Does that make sense? We have multiple Skuid pages within the one Lightning Builder page. But the main page holds the child record table with its attachments file upload functionality for each child record
  • edited May 25, 2018
    nevermind. Got it working by using visualforce component within Lightning Builder. Was confused on your logic but got it working using your method
  • Mark DeSimoneMark DeSimone 🛠️ 
    edited May 25, 2018
    Hi Benton, this is a high priority item, and our engineers are working to build a solution. We do not have any updates at this time, but I am glad you were able to make use of the Visualforce workaround. I have also heard that some customers are able to use a Lightning file upload component alongside their Skuid page, but the feasibility of that depends on whether you need to do any Skuid-specific things (like trigger an action sequence after upload is complete, for example).
  • edited October 16, 2018
    Any updates here?
  • Mark DeSimoneMark DeSimone 🛠️ 
    edited October 16, 2018
    Hi Allison. Work is progressing on this. The solution requires some new supporting architecture, so it is a larger effort than it might seem at first glance. We will be sure to update this thread when a solution is available. If you didn't see it, the workaround suggested above might be of use to you in the meantime.
  • PaulPaul ✭✭
    edited September 12, 2019
    Thanks, definitely interested in a proper fix! 

    This should be in the documentation though, I looked all over for this because I was having the issue too, but not on mobile, just a lightning component in the app builder.  Dismissed this post initially because it was focused on sf1. 
  • Conlan O'RourkeConlan O'Rourke ✭✭✭✭
    edited February 27, 2019
    Mark, are you building the fix for this on Spark V2 pages only or will it also be available for V1 and Millau?
  • edited June 19, 2019
    Is there any update on when the fix is coming?
  • Mark DeSimoneMark DeSimone 🛠️ 
    edited February 4, 2020
    Hi Harry. This should be possible in pages starting in Skuid release 12.1.X. There's an checkbox in the file uploader component properties that allows you to use the Lightning file uploader when in Lightning. You'll want to check this box. Be aware though that the Lightning file upload component can't be used in a Skuid Popup, so the alternative would be to use a sliding panel instead of the popup.
  • edited June 20, 2019
    Hi Mark, This works. Thx, ~harry
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!