+ Start a Discussion
Pranav S SanvatsarkarPranav S Sanvatsarkar 

How can I attach files in Visualforce Pages without reloading the pages?

Hello there,

I wonder if there is any way by which I can upload files weighting more that 2 GB (Feed Attachments) or so using standard Visualforce File Attachments component. I heard  / read about using connection.js. Can someone give my an idea about connection.js and how it works, the platform limitations, etc?

Thanks in advance.
Shruti SShruti S
You cannot upload files weighing more than 2GB. The maximum limit is 2GB.
If you want to upload files less than 2GB, you should be using Document API which has nothing to do with connection.js .
Here is a link if you want to know more about it - https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm" target="_blank)
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Pranav,

May I request you to please refer the below link for reference. I hope it will be helpful.

Please mark it as best answer if the information is informative. so that it appears as a proper solution with similar kind of issues.

Best Regards
Rahul Kumar