Page 1 of 1

From browser upload large csv file from local machine

Posted: Wed Jul 13, 2011 6:59 am
by edziffel
Hello

This is my first post to this forum, so first let me thank all involved in the site for having one that works, as the first two I tried to join did not. Mind numbing huh?

Currently need to develop proper code so end user can click on a "browse to file" button in a browser to select a csv file that will then be uploaded to a MySql table.

Am thinking to use fgetcsv to upload and fopen to specify file. Want to be able to allow end user to open files from various directories on local machine using a browse button but am not sure what to use for that job. There is probably something already done for this I'm just not aware of and if not then maybe some one can clue me on where to start.

Thanks

Re: From browser upload large csv file from local machine

Posted: Wed Jul 13, 2011 11:17 am
by Celauran
edziffel wrote:Want to be able to allow end user to open files from various directories on local machine using a browse button but am not sure what to use for that job. There is probably something already done for this I'm just not aware of and if not then maybe some one can clue me on where to start.
Are you using a form with input type="file"? If not, that's where I'd start. If you are, what sort of problems are you encountering?