I have a import file page that has a form with a file input element in it, when the user clicks submit, it sends the file, with a JSON document, to a url which uses PHP to read the file and processes it, then inserts the data into a MySQL database.
My question is, what is the best way to go about handling this import feature on the import page(the user-facing interface)? The technologies I am able to use are, Javascript with jQuery for the import file page, and PHP with Codeigniter for the api for serverside processing.
So far, I read people recommending work arounds using iframes, or HTML5 File Api. Is there a better/safer/easier way to go about creating the file upload feature?