Fine Uploader - 将所有文件上传到一个文件夹中

Fine Uploader - upload all files in one folder

我已经设置了 Fine Uploader 来上传到自己的服务器。 默认情况下,它会为每个上传的文件创建一个新文件夹,例如

/uploadfolder/guid1/file1.txt
/uploadfolder/guid2/file2.txt

如何将其更改为上传到一个文件夹?

/uploadfolder/guid1/file1.txt<br>
/uploadfolder/guid1/file2.txt<br>

对于端点,我使用 PHP traditional server code from github

添加 "uuidName" 参数似乎有效 - 上传的文件被放入一个文件夹中。

<script>
var multiFileUploader = new qq.FineUploader({
                    element: document.getElementById("myFileDropArea"),
                    request: {
                        endpoint: 'FineUploader/endpoint.php',
                        uuidName: 'myFolder'
                    }
                });
</script>

服务器端,在handler.php,可以更改

return array("success" => true, "uuid" => $uuid);

进入

return array("success" => true, "uuid" => NULL);