This event fires when some restriction is broken.
<script type="text/javascript"> function Uploader1_RestrictionFailed(errorCode, fileName, message){ //...your code... } </script>
<aur:Uploader ID="Uploader1" runat="server"> <ClientEvents> <aur:ClientEvent EventName="RestrictionFailed" HandlerName="Uploader1_RestrictionFailed" /> </ClientEvents> </aur:Uploader>
<script type="text/javascript"> function Uploader1_RestrictionFailed(errorCode, fileName, message){ //...your code... } </script>
<?php $Uploader = new Uploader("Uploader1"); //...other params... $Uploader->getClientEvents()->setRestrictionFailed("Uploader1_RestrictionFailed"); //...other params... $Uploader->render(); ?>
function Uploader1_RestrictionFailed(errorCode, fileName, message){ //...your code... }
$au.uploader({ events: { //...other params... restrictionFailed: [Uploader1_RestrictionFailed], //...other params... } })
Type: Number
One of the following values:
false
);Type: String
The name of the file which breaks the restriction.
Type: String
The message stating that the restriction is broken. The same message is displayed in the information bar.