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
PhantomPhantom 

How to upload *.csv file from client???

Hi all,

 

I have an issue about upload a *csv file to Force.com. My customers want to upload a *csv file to force.com but do not like to use dataloader, I must develop VisualForce page that allows customers can upload file, so anyone can help me this problem??? Please!!!

AnshulVermaAnshulVerma

Hi,

 

If you just want to upload the file, you can enable the notes and attachment to the custom object.

 

If you want to parse the uploaded file and perform some actions on basis of that, you can create a visualforce page and user <apex:inputfile /> tag in it to enable file upload. In the controller of that page you can parse the uploaded file and do the necessary tasks.

 

- Anshul Verma

magdielhfmagdielhf

Hi, 

 

Here you might find some suitable information,

 

http://community.salesforce.com/sforce/board/message?board.id=general_development&thread.id=26572&view=by_date_ascending&page=1 

 

They post the way to do it from a Visual force page, for parsing de CSV there is some troubles like for example the limits on String (100,000 characters) here you can find a good start point

 

http://wiki.developerforce.com/index.php/Code_Samples#Parse_a_CSV_with_APEX 

 

Regards.