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
DJ 367DJ 367 

Upload 50 MB file thru visualforce page

Hello All,

I have a urgent requirment where I need to store file of 50 MB. <apex:inputFile> does not support this much large file, I tried with the below link but I am not able to write code. 
https://hub.appirio.com/tech-blog/upload-a-file-as-large-as-2gb-in-salesforce-using-a-visualforce-page

can someone please help me to achieve this. Thanks in advance.
Best Answer chosen by DJ 367
DJ 367DJ 367
I used chatter functionality into vf page and now able to upload file upto 2 gb

All Answers

GovindarajGovindaraj
Hi,

Did you try Javascript remoting ?

https://forceadventure.wordpress.com/2013/07/19/uploading-attachments-to-salesforce-using-javascript-remoting/

Thanks,
Govindaraj.S
DJ 367DJ 367
Hi,
It is clearly mentioned in the blog that there is a limitation of 4.3 MB. My Requirement is to upload at least 50 MB file.

Limitations
* 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
 
DJ 367DJ 367
I used chatter functionality into vf page and now able to upload file upto 2 gb
This was selected as the best answer
Pasumarthy RaghavendraPasumarthy Raghavendra
Hi DJ 367,

Since you mentioned it in the Best answer, I would like to know how did you write code for chatter functionality. I also have the same requirement of uploading files more than 100mb to salesforce. Please send the code at rushiraghavendra@gmail.com. It would be really helpful to me.

Thanks,
Raghav