You need to sign in to do that
Don't have an account?
udayarangareddy mekala
ATTATCHEMENT FILE
Hi
<apex:inputField value="{!Empolyee_Details__c.name}"/>
<apex:inputfile value="{!Empolyee_Details__c.ID}" filename="{!Empolyee_Details__c.name}"></apex:inputfile>
i wrote the above statements which will come as CHOOSE FILE option.Through CHOOSE FILE option i uploaded file but it was showing ERROR.please tell me solution.
THANKS
RANGA
Hi,
Use the above code and let me know if it is solved your issue.
All Answers
You need create Document/Attachment property in constructor and when user click save you need insert in database new document/attachment
Please see code below
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Alex
Hi,
Use the above code and let me know if it is solved your issue.
Thanks MUTHURAJ
The above two statements i mentioned in myVF PAGE n CONTROLLER which shows the CHOOSE FILE option.whenever i was going to upload any file i got below message.
value 'core.filemanager.FileBlobValue@4b238c6d' cannot be converted from core.filemanager.FileBlobValue to lib.id.ID
Error is in expression '{!Empolyee_Details__c.id}' in component <apex:inputFile> in page employee_create_page
THANKS
RANGA