You need to sign in to do that
Don't have an account?

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.
Thanks,
Anish
I need to create field which give the user option to browse and upload document. Please help on these.
Thanks,
Anish
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.
https://blog.jeffdouglas.com/2010/04/28/uploading-an-attachment-using-visualforce-and-a-custom-controller/
Mark this as Solved if it works.
Sathish P
I tried the same thing mentioned in above link bu still i am getting an error.
Error: Unknown property 'VisualforceArrayList.name'
Please let me know if you need any more information.
Thanks,
Anish