Ask user to choose a file to read

Topics: Developer Forum, Project Management Forum, User Forum
Sep 13, 2012 at 8:10 AM



I'm trying to use PHPExcel in order to read some informations into a xls file. I would like that the user is able to choose this file throught a dialog box. How can i do that?


thank you

Sep 14, 2012 at 6:38 AM

This really isn't a PHPExcel issue, but a basic PHP question. Are the files already on the web server? in which case you need to use scandir() (or similar) in a PHP script to list the files and allow the user to choose one; else you need to write a small file upload script