Comment #10 on issue 8641 by [email protected]: Cancelling file upload  
displays error message probably due to return of wrong value
http://code.google.com/p/chromium/issues/detail?id=8641

I feel this is because the cnChange event is fired even when user clicks  
cancel
button.

try this code:


<html>
<head>
        <title>Scratchy Pad !!</title>  
        <script>
                function changed(){             
                        alert("Change event !!");
                }
        </script>
</head>
<body>

Choose a file and then click cancel....
Try this in IE, Firefox, Safari too !

<input type="file" onchange="changed();"/>

</body>

</html>

The above code shows the alert even when user clicks cancel in Chrome,
safari works fine, so does IE and Firefox.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to