Im trying to setup a page with multiple file uploader sections
anyway it was working fine so far but i have encountered a little problem:
我希望每次使用该页面上的上传者时都为文件创建一个新文件夹 。
所以我在 valums 用于处理上传程序的 php.php 中添加一个 < code> mkdir 命令 。
With that mkdir
inside the php.php, the folder gets created and files get uploaded so the procedure works...
BUT i get a "failed" message next to each filename on the transferlist.
没有这个 mkdir
,整个事情就会正常运转。
我该从哪儿开始找 有什么想法吗
这里的代码是代码
<script>
function createUploader<?php echo $c; ?>(){
var uploader = new qq.FileUploader({
element: document.getElementById( uploadroom<?php echo $c; ?> ),
action: ../common/jqueryplugins/valums/server/php.php ,
debug: true,
// ex. [ jpg , jpeg , png , gif ] or []
allowedExtensions: [ jpg , jpeg , png , gif ],
dragDrop: false,
params: {
planid: <?php echo $_SESSION[ planid ]; ?> ,
roomname: room<?php echo $c; ?>
}
});
}
$(document).ready(function(){createUploader<?php echo $c; ?>(); });
</script>
i m getting some variables from php, as this part is being replicated a bunch of times, different buttons upload to different folders.
inside the php.php file (at the top) i got something like this:
$uploaddir = ../../../../rental/userfiles/1/ .$_GET[ planid ]. /images/ .$_GET[ roomname ]. / ;
mkdir($uploaddir;
($uploaddir);
a weird uploaddir and my mkdir command
and at the end:
`$result = $uploader->handleUpload($uploaddir);`
these are mostly the things ive changed
and i get a "failed" next to the filename although it works perfectly