function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cvtnguyencvtnguyen 

Archive (Zip) Static Resource, ~10.5MB, exceeds 5MB limit. Splitting it up and uploading them separately causes incorrect references within the files.

I have a large archive static resource that I can't individually upload (the files within all reference each other), and I can't change all references to URLFOR($Resource.MyLargeZip, '...').

My main JavaScript file references other JavaScript, CSS, fonts, images, and etc.

The apex tag syntax renders an HTML tag like so (found in the docs): 

"<link rel="stylesheet"  type="text/css" href="[generatedId]/basic.css"/>"

which generates an id folder that I would have to append to every reference in my code which isn't feasible to do.

Ajay K DubediAjay K Dubedi
Hi cvtnguyen,

I have gone through your issue. You can not upload any file that is bigger than 5MB. Only way to achieve this is contacting salesforce as they can increase the file upload size of your org.
Few people have done this to complete their requirements.


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com