D
darrel
I'm using a file upload form field to allow a person to upload a file from
their browser.
I've noticed that I could type anything into the field: virus.exe and the
application will go ahead and write a file 'virus.exe' to the server.
Now, for starters, I should obviously be filtering out exe files ;o)
But, what is the proper way to check to see that a file passed to the server
via a file form field is actually a physical file. Should I just check it's
file size and make sure it's larger than a byte? Is there something more
specific I should check for?
-Darrel
their browser.
I've noticed that I could type anything into the field: virus.exe and the
application will go ahead and write a file 'virus.exe' to the server.
Now, for starters, I should obviously be filtering out exe files ;o)
But, what is the proper way to check to see that a file passed to the server
via a file form field is actually a physical file. Should I just check it's
file size and make sure it's larger than a byte? Is there something more
specific I should check for?
-Darrel