uploading files
Posted: Tue Mar 11, 2008 1:00 pm
Hi,
I am writing a program that uploads files onto a server. Right now I am uploading excel files. I am using html to ask for a file path, and then use php to transfer the file onto a folder in the server computer.
For security purposes, is there any way to check if the file uploaded is a valid excel file (and not just some file changed to .xls)? It doesn't have to be excel, is it possible to check if a file is a valid jpeg, bitmap, wmv, etc?
Thanks!
I am writing a program that uploads files onto a server. Right now I am uploading excel files. I am using html to ask for a file path, and then use php to transfer the file onto a folder in the server computer.
For security purposes, is there any way to check if the file uploaded is a valid excel file (and not just some file changed to .xls)? It doesn't have to be excel, is it possible to check if a file is a valid jpeg, bitmap, wmv, etc?
Thanks!