hi all, in my application i have a file upload controller.i have validated that only .doc file can be attached.but problem is that when i am attaching a file which is not a .doc file ,after that i am replacing the extention with .doc extension.then i am saving it.it is saving but in the document the link is not showing because there is no such file of this name.i want check that the file exists in the system or not before saving.how can i do that? Is there any java script function which checks that the selected file exists in the system or not.
Subject: validation of file upload control
You can only access the users file system through the browser if they explicitly allow some very scary operations via the security settings. I don’t recommend this, but if you want to do it anyway you can achieve what you want using ActiveX (in IE).
new ActiveXObject(“Scripting.FileSystemObject”);