You need to sign in to do that
Don't have an account?

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.
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.
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)
May I request you to please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/88933/upload-attachment-in-visualforce-without-reloading-the-whole-page
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