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

How to upload a file which is in my local drive into Document object

I have developed a visual force page(Form)  through which I am able to access File existing in my Local Disk.
The problem I am facing here is:How to save this File in  Document object of my instance.
Please Suggest me
Ron HessRon Hess
the next release is scheduled here:

this release contains the new component you need

Message Edited by Ron Hess on 09-16-2008 08:50 PM
There is a new component coming in the Winter 09 release that should assist with this. <apex:inputFile>

Winter '09 has a new component, apex:inputFile, that will help you accomplish this easily but for now you are missing some important server side bits that handle multipart mime encoding that will make this difficult at best. Winter '09 is being deployed to sometime over the next few weeks - can you wait until then?

Message Edited by dchasman on 09-16-2008 12:20 PM