Uploadify Multiple buttons - one page

后端 未结 4 1628
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 00:39

I am creating a website for a client, and he wants to be able to have in one page, many upload buttons. When he clicks select files, uploadify uploads the file to the server

4条回答
  •  天涯浪人
    2021-01-03 01:21

    This code:

    jQuery(".file_upload").each(function() {
       jQuery(this).uploadify({
          height        : 30,
          swf           : '/uploadify/uploadify.swf',
          uploader      : '/script/uploadify/uploadify.php',
          width         : 120
       });
    });
    

    works very fine.

    This also requires that the ids in the .file_upload elements are unique, even if they are not used.

提交回复
热议问题