You need to sign in to do that
Don't have an account?
FILE ATTATCHMENT
Hi
VFPAGE
<apex:inputFile filename="{!fileName}" value="{!resume}"/>
CONTROLLER
public String fileName {get; set;}
public Blob resume {get; set;}
private Empolyee_Details__c empDetail;
try{
if(resume!=null){
Attachment attach=new Attachment();
attach.Body=resume;
attach.Name=filename;
attach.ParentID=empDetail.id;
upsert(attach);
}
The above one is the FILE ATTATCHMENT CODE .In that code i didnt get any errors but file was not uploading .please tell me any issues are there for above code.
Thansk&Regards
RangaReddy
Visualforce Page
Apex Class
All Answers
Visualforce Page
Apex Class
Can u please tell me what is the use of parentid and how to get this id 0019000000nFfmL.
Thanks&Regards
Rangareddy
The file was uploaded successfully,but it was not showing in the EDIT PAGE.
Thanks&Regards
Ranga
Can you please check this application for Attachments,
MassMailer DOCS let’s you easily mass email email attachments to your leads or contacts while securely storing your files with Rackspace Cloud Files.
You can try this app by installing from appexchange -Massmailer Docs
You can learn more details about the product on this website - Link