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
Shrikant BagalShrikant Bagal 

Urgernt Is it Possible to Upload File With Multiple Chunks?

Hello Guys,

Q: Is it Possible to upload Large file with Chunks In Salesforce using Any think without Third Party Application Please.
- Any API
- Javascript
- RemoteAction
- Any Other Option.

NagaNaga (Salesforce Developers) 
Hi Shrikant,

You an use Javascript Remoting for is uploading a file to Salesforce. Admittedly, using an apex:inputFile element that is bound to a variable in your controller is probably easier but you may have a scenario where you need to have granular control over how your page acts. 


More granular and responsive error handling (Know the file is too big before you try to upload it)
Keep track of upload status (you could create a progress bar for uploads if you wish)


Considerably more complex
Hoops to jump through because of limits on the platform

Javascript Remoting maximum message size of 1 million characters (“Input too long. [0, 1000000]”)
Maximum String length of 6 million characters in apex code (“String length exceeds maximum: 6000000″)

This means a functional limit of a file size of about 4.3 MB

Best Regards
Naga Kiran