+ Start a Discussion

Can I create a custom button to upload a file from my computer?


I would like to create a button in the opportunities tab that allows me to search my computer for a file and upload it to that opportunity (similar to a browse button).  We have certain files we need uploaded for every opportunity so I would like to have a field for each of these that has a label with the type of file that needs to be uploaded there and a place for the file and the custom upload button. Can anyone help?



Create a custom link or button on the opportunity standard page and on click call a custome visualforce page. In the custom visualforce page, you need to put the logic to browse the image from your computer. You can save the images in the document folder or in any other folder as per your requirements.


Hope this helps.


Great! But I am not familiar with visualforce pages and I don't know the logic to put in it. Any ideas?