3

In Winter 2018 release salesforce has released a new beta lightning component for uploading file through the lightning:fileUpload (Beta).

The documentation in this link says we can upload a file of size 2 GB:

File Upload Limits

By default, you can upload up to 10 files simultaneously unless your Salesforce admin has changed that limit. The org limit for the number of files simultaneously uploaded is a maximum of 25 files and a minimum of 3 files. The maximum file size you can upload is 2 GB. In Communities, the file size limits and types allowed follow the settings determined by community file moderation.

  1. Apex heap size limit for synchronous transactions is 6 MB and async is 12 MB. If heap size is 6 OR 12 MB how can someone upload a file of size 2 GB?

  2. When the file is transferred to server is it even considered part of Heap size?

Any documentation on how heap size is calculated will be really helpful.

  • AFAIK The fileUpload component handles things correctly, and doesn't consider Apex Heap size. Are you observing any discrepancies? – Nabs Nov 15 '17 at 23:26
  • Any luck on this? I'm trying to create a custom component but running in to heap size limit after 4 MB.Not sure on how Salesforce is working on a 2 GB file in the back end. – cartman Jul 5 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.