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
Anish Mahadik 1Anish Mahadik 1 

How to create field to give the attachment option to user in Vf page.

Hi All,

I need to create field which give the user option to browse and upload document. Please help on these.


Hi Anish, 

You provide upload option to users by placing the  <apex:inputFile> tag line on visualforce page.

Please refer the below link, There you can see sample code along with an example for better understanding.

Mark this as Solved if it works.

Sathish P

Anish Mahadik 1Anish Mahadik 1
Hi Satish,

I tried the same thing mentioned in above link bu still i am getting an error.

Error: Unknown property ''

Please let me know if you need any more information.