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
sg88324sg88324 

Retaining file value on page refresh

Hi all,

 

There is a peculiar problem that i m facing with file upload. There is an inputfile on my VF and whenever i refresh the page, the file value is getting lost. I want to retain the file uploaded even when the page is refershed.

 

code:

 

VF:

<apex:inputFile value="{!attachment.body}"/>

 

Apex Class:

public Attachment attachment{
    get {
      if (attachment== null){
        attachment= new Attachment();
         doclist.add(attachment);}
      return attachment;
    }
    set;
  
  }

 

Thanks,

Sandeep

 

rere

it is not possible in sfdc.....as of now.....

 

 

bye