Hello All
Could anybody give me any idea's on a problem I am having. I have been on the W3 schools excellent site and used their PHP upload script, found at the link below.
http://www.w3schools.com/php/php_file_upload.asp
This works great except for one small problem. I don't want to upload image files' I want to upload a CSV file to the server. From there I want to import it into MySql, which I have written a script for and it is working fine.
However, trying to upload a CSV file returns the message "File Invalid". Any idea's on what is required to allow CSV uploads?
Just to give you some background, this is for a project at work, we have been told there is no chance of IT doing it, but the senior management are happy for us to "dabble" and see what we can come up. It will be hosted externally, but entered through a Login system. It will basically be a CSV file of stock info loaded into the database (the CSV is sent to us on email by a 3rd party company), we will upload the CSV to the server, and then import into the database on the server. We then have numerous PHP script's with various query's for different info req'd to streamline our operation.
Any help anyone could give me would be great, thanks for taking your time to read this.
HS 
|