0

YUI 3 アップローダーを使用しています。
この例は、指定された参照 URL から取得します:
http://yuilibrary.com/yui/docs/uploader/uploader-multiple.html

IE.8バージョンがあります。
test.php という php ファイルを作成し、以下に示すように、指定された URL からスクリプトを作成しました。

  <script src="http://yui.yahooapis.com/3.8.1/build/yui/yui-min.js"></script>
  <script>

  YUI({filter:"raw"}).use('uploader', function(Y) {
  Y.one("#overallProgress").set("text", "Uploader type: " + Y.Uploader.TYPE);
  if (Y.Uploader.TYPE != "none" && !Y.UA.ios) {
   var uploader = 
         new Y.Uploader({width: "250px",
               height: "35px",
               multipleFiles: true,
               swfURL: "http://localhost.com  /test/flashuploader.swf?t="  + Math.random(),
               uploadURL: "http://localhost.com/test/test.php",
               simLimit: 2,
               withCredentials: false
         });
  });

このページを IE で開いても何も起こらず、ファイルを選択するためのファイル ダイアログ ボックスが開きません。

誰かがすでにこの問題を解決している場合は、どうすれば解決できるか教えてください。

ありがとう、

4

1 に答える 1

0
   I have used all source code from below url:
   http://yuilibrary.com/yui/docs/uploader/uploader-multiple.html

   and 
   <script src="http://yui.yahooapis.com/3.8.1/build/yui/yui-min.js"></script>
   to    create instance the uploader.

   We need to just replace another version file of yui-min.js file as below
   <script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>

   Apart from js file we need to change these 
   swfUrl: http://mudomain.com/test/flashuploader.swf
   UploadeUrl: http://mudomain.com/test/uploader.php

   To Upload file on the server, just write the script in the given above page in
    the  uploadUrl "uploader.php" as

   <?php
   $uploadedPath = 'Uploaded_Files/';
    foreach ($_FILES as $fieldName => $file) {
       move_uploaded_file($file['tmp_name'], $uploadedPath.$file['name']);
    }
    ?>

    Now you will see all selected files will be uploaded.

   But there is limitation in the IE, We can upload 1 to 5 files at a time.
于 2013-02-14T19:00:31.997 に答える