Create Apex Class. This is the core program to upload the file to Salesforce and attached to the parent record. …
1..Create Apex Text Class. …
2..Create Visualforce Page. …
3..Create Custom Button or Link. …
4..Add Custom Button or Link to Page Layout. …
5..Add Apex Class and Visualforce Page to user profile