When adding upload functionality to your website, you may want to display messages that alert your visitors to uploading issues, should any occur. Digital File Pro includes built-in error messages that display when an upload is attempted. In this tutorial, you will learn how to modify these messages for each specific error.
Digital File Pro displays error messages that are useful whether you wish to provide user friendly alerts after uploads fail or to show error messages for debugging your upload functionality.
Depending on the error that occurs, the binding that you have added to your page will display an error message. Each error message can be customized by modifying the code. In addition, each error message has its own number that needs locating in order to create the custom code.
Locate the error codes:
Customize the error messages:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["errorMessage"]; ?>
<?php if ($WA_DFP_UploadStatus["WA_UploadResult1"]["statusCode"]; ?>
<?php if ($WA_DFP_UploadStatus["WA_UploadResult1"]["statusCode"] == 1) { ?>Upload successful!
<?php } ?>
Now whenever a file is uploaded successfully, Upload successful! will display on your page.
Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.
Sign in to add commentsYour friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.