Posts

Showing posts from September, 2017

Salesforce Voice Assistant

Image

Upload a File as Large as 2GB in Salesforce Using a Visualforce Page

Image
 Listed in Top 20 Salesforce Articles of 2016  by Rainforce (WalkMe)  http://rainforce.walkme.com/nectar-salesforce-gods-top-20-salesforce-articles-2016/

Recently, we got a requirement in a project to upload a file into Salesforce that could be as large as 2GB, using a Visualforce page. We created a Visualforce page and used the apex:inputFile component, but received an error upon upload because apex:inputFile has a limitation. The largest file size users can upload with Visualforce is 10MB. This posed a big limitation for the requirement. We used a different approach to meet this requirement. This is a tricky problem to solve, and needs some jQuery stuff. We decided to use the chatter:feed component in a Visualforce page. This component embeds Chatter in the Visualforce page, and allows users to upload files as large as 2GB as Chatter feed in Salesforce. It’s just as pictured below when we upload a file using this component:













As for keeping track of the files uploaded, we created a custom …