G Guest Jun 2, 2004 #1 hiye, how can i make my upload box to only accept *.xls files thanks in advance smen
S Steve C. Orr [MVP, MCSD] Jun 2, 2004 #2 There is no great way that is accepted by all browsers. Therefore you'll need to double check the file once it's been uploaded and reject it then.
There is no great way that is accepted by all browsers. Therefore you'll need to double check the file once it's been uploaded and reject it then.
S Shaul Feldman Jun 2, 2004 #4 Hi, maybe just to try on the client to check the extension of th file?
S Steve C. Orr [MVP, MCSD] Jun 2, 2004 #5 Use the File Upload control. You can use a validation control with it to help ensure the file has the correct extension. But like I said, you should also double check the PostedFile.ContentType on the server side to verify it is the kind of file that you think it is. Here's more info: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-fileupload.asp
Use the File Upload control. You can use a validation control with it to help ensure the file has the correct extension. But like I said, you should also double check the PostedFile.ContentType on the server side to verify it is the kind of file that you think it is. Here's more info: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-fileupload.asp