[SalesForce] Large size file upload related to custom object

Is it possible to upload the files with size more than 25MB and can we show them in related list of a custom object? what is the best way to achieve this?
Do we need to use external storage if the size limit crosses 2GB limit?
can we upload the files via VF page?

Best Answer

Yes you can do this using chatter. Check here Upload a File as Large as 2GB in Salesforce Using a Visualforce Page

Basically what you need to do here is include chatter component in the VF page and then using some CSS display it and attach file of 2 GB.

<chatter:feed entityId="<ID of the custom object record>" />

Now some CSS and javascript

$('.uploadFileSizeLimit').hide();           

$('.contentPublisherSlideDown.customPanel.alignTop').css('border', '0');

$('.clearContentPanelButtonContainer').hide();

$('.publisherFeedItemTypeChoices').hide();      

$('.cxfeedinnerwrapper').hide();  

$('.publisherBottomBarPlaceholder').hide();

$('.publisherTextAreaPlaceholder.alignCenter').hide();

And

if($('.file')[1].files.length > 0){

                   $('#publishersharebutton').trigger('click');

}else{

                   alert('Please select a file');

}

Your icon look like enter image description here

But if you want to upload more then 2 GB in single shot then you need external server(Drive, Dropbox) for this.

Related Topic