get file names from uploadify jquery plugin

后端 未结 3 2038
一整个雨季
一整个雨季 2021-01-14 21:30

that is my first post

I am trying here, to get the names of the files that are uploaded, so that the user can delete it if desired, the same way as yahoo.

3条回答
  •  感动是毒
    2021-01-14 22:30

    thanks to "Codler", I could solve this problem, I will share the code, maybe it will help.

    $("#uploadifysub1").uploadify({
            'uploader'       : 'JS/uploadify.swf',
            'script'         : 'JS/uploadify.php',
            'cancelImg'      : 'cancel.png',
            'buttonImg'      : 'attach.png',
            'folder'         : 'uploads',
            'queueID'        : 'divquickuploadProgress1',
            'auto'           : true,
            'multi'          : true,
            'onComplete'     : function(event, queueID, fileObj, reposnse, data) {
                // write your own implementation
                               }
        });
    

    my implementation was like that

    var cod = '';
    cod += ''+fileObj.name+'';
    cod += '';
    cod += ' ';
    cod += '[remove]';
    cod += '';
    cod += '';
    $('#uploaded_files').append(cod);
    

    Thanks again

提交回复
热议问题