I am building a custom application in Salesforce using HTML. The user who logs into the application should be able to upload multiple documents and download the same once they are uploaded.
I want to know if its possible to achieve the same in Salesforce (similar functionality to the one we have in Gmail)? If yes, then where will these documents get stored?
Any help is appreciated.
Thanks.
Best Answer
I found an answer to your question a couple if years back and it works well up to about a total of 5 megabytes for all of the files total. I do not remember the source but will look as I want to give due credit. I will add the controller, component, javascript and css fileto this post response. If you have additional question please let me know.
I added my own test code for controller and the custom objects in which I use this feature, so you will have to write some of your own test code. This example was old enough I was allowed to add the test code to the same class. Something we cannot do anymore. I used another utility class called TestConfiguration in which I call static methods to create objects for testing. There are many good sources on using this concept to manage creation of test objects.
I will find the source and add this information as I need to give due credit as much of this work is not my own.
Controller
Component (to be added to the page)
JavaScript
CSS File