开发者

uploadify email notification

Is it possible for "Uploadify" to send out e-mail confirmation after the upload?

Uploadify is a jQuery plugin that allows the easy integration of a multiple (or single) file uploads on your website. It requires Flash and any backend development language. An array of options allow for full customization for advanced users, but basic implementation is so easy that even coding novices can do it.

here is the script:

<script type="text/javas开发者_运维百科cript">
$(document).ready(function() {
    $("#uploadify").uploadify({
        'uploader'       : 'scripts/uploadify.swf',
        'script'         : 'scripts/uploadify.php',
        'cancelImg'      : 'cancel.png',
        'folder'         : 'uploads',
        'auto'           : true,
        'multi'          : true,
        'onComplete'   : function(event, queueID, fileObj, response, data) {
                         $('#message').html( 'files were successfully uploaded');
                         $('#message').show().animate({'display':'block'},3000).hide(500);
                       }
    });
});
</script>


You would want to add the email sending functionality to your scripts/uploadify.php file.


Create a PHP script that sends the mail.

Use Uploadify's onAllComplete handler to make a final XmlHttpRequest (AJAX) call to your shiny new email-sending script.

Lots of details to fill in, but this is probably the best direction to take.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜