homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
ie input file invalid file
magnamux




msg:4153152
 7:48 pm on Jun 15, 2010 (gmt 0)

Hi, i've got the same problem than a previous topic (ie input file invalid file) that wasn't resolved.

I finally find a way to detect if the value type in a input type="file" exist on the client computer.

You only need some javascript in the onclick event of the submit button.
here an example :

try{
frmUpload.submit();
}catch(ex){
alert(errorMessage);

}


If the file doesn't exist submit throw an unauthorized access error. By catching this error you now know that the file doesn't exist or is restricted to the user.

 

bill




msg:4153415
 6:31 am on Jun 16, 2010 (gmt 0)

Welcome to WebmasterWorld magnamux.

Are you referring to a previous thread on WebmasterWorld? Could you post a link to that thread?

magnamux




msg:4153563
 1:04 pm on Jun 16, 2010 (gmt 0)

Yes i am. Here the link :[webmasterworld.com ]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved