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

  • 6
  • Problem
  • Updated 1 month ago
  • Acknowledged
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?
Photo of Mansour

Mansour

  • 1,932 Points 1k badge 2x thumb

Posted 1 year ago

  • 6
Photo of Mansour

Mansour

  • 1,932 Points 1k badge 2x thumb
This is still an issue despite the upgrade to the new SF mobile app and Millau.
Any ideas on how to fix?
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
Hi Mansour, how large are the files in question?
Photo of Mansour

Mansour

  • 1,932 Points 1k badge 2x thumb
It's a photo from the phone. 
5MB?
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
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?
Photo of Mansour

Mansour

  • 1,932 Points 1k badge 2x thumb
Thanks Mark - I'm not sure what you mean by "switch to classic" in SF1.  Could you elaborate please?
Photo of Mansour

Mansour

  • 1,932 Points 1k badge 2x thumb
Have any updates been made to this issue?
This is a major part of a mobile implementation we are working on.
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
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. 
Photo of Mansour

Mansour

  • 1,932 Points 1k badge 2x thumb
That totally worked.  Amazing - thank you so much Mark!
Photo of Benton Cotter

Benton Cotter

  • 302 Points 250 badge 2x thumb
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.
Photo of Benton Cotter

Benton Cotter

  • 302 Points 250 badge 2x thumb
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
Photo of Benton Cotter

Benton Cotter

  • 302 Points 250 badge 2x thumb
nevermind. Got it working by using visualforce component within Lightning Builder. Was confused on your logic but got it working using your method
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
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).
Photo of Allison Letts

Allison Letts

  • 64 Points
Any updates here?
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
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.
Photo of Paul

Paul

  • 532 Points 500 badge 2x thumb
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.