You need to sign in to do that
Don't have an account?
AnshulVerma
How to upload file automatically
Hi,
There is a feature requirement in our application, that requires file to be uploaded on server just by clicking a button.
Is there any option in Apex/ Visualforce/SControls using which we can upload file automatically. Any technique, wether using Javascript/ AJAX.. would do.. its urgent??
Thanks in Advance.
A.V.
There is a feature requirement in our application, that requires file to be uploaded on server just by clicking a button.
Is there any option in Apex/ Visualforce/SControls using which we can upload file automatically. Any technique, wether using Javascript/ AJAX.. would do.. its urgent??
Thanks in Advance.
A.V.
Also, where is the file located? On the user's computer? Is the filename and location always the same?
This sounds similar to something I am trying to do.
I am trying to import 300+ CSV files automatically into a custom object. These can be housed on a user PC or a server or document library on a sharepoint site, which ever is easiest to get the functionality.
You could pass the filename in as a command-line parameter, so just get something (eg command line script) to iterate through the files, calling DataLoader once per filename. The rest of the configuration (eg field mapping, login information) would be stored in the DataLoader configuration files and be used automatically for each batch.
The Data Loader PDF manual is pretty good, but I'd be happy to answer any specific questions. I use it quite a bit in batch mode.
I load multiple files in the DataLoader by calling it once per file, eg:
For each of those "processes", I have an entry in process-conf.xml and a matching query in database-conf.xml. I load data from a database, not a file but you could just as easily include the filename in the process-conf.xml file.
Alternatively, you can pass parameters on the command line. I haven't done it, but I've seen it somewhere. For example:
John--
Thanks for the help, let me take a little time and look this over and try a couple things out and see where I end up.
Can we upload this csv automatically to Chatter File using Data Loader?
My requirement is to make this csv available for public user even outside salesforce.
Any help would be appreciated.Thanks!