エラーはなく、動作しているように見えます。ただし、画像はサーバーにアップロードされません。
ローカルホストで動作する同じコード。
この問題について何かを読んでも解決策はありません:
同じ問題:
http://www.uploadify.com/forums/discussion/6974/upload-ok-but-file-not-in-target-folder/p1
http://www.uploadify.com/forum/#/discussion/5527/upload-does-not-work-no-errors/p1
Jquery:
$("#fileUpload2").fileUpload({
'uploader': 'uploadify/uploader.swf',
'cancelImg': 'uploadify/cancel.png',
'script': 'uploadify/upload.php',
'folder': '/files',
'multi': true,
'buttonText': 'start upl',
'checkScript': 'uploadify/check.php',
'displayData': 'speed',
'simUploadLimit': 2,
'onComplete':function(event, ID, fileObj, response, data){
foto=foto+fileObj.name;
}
});
upload.php
<?php
if (!empty($_FILES)) {
$tempFile = $_FILES['Filedata']['tmp_name'];
$targetPath = $_SERVER['DOCUMENT_ROOT'] . $_GET['folder'] . '/';
$targetFile = str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];
$ff= $_FILES['Filedata']['name'];
echo $ff;
// Uncomment the following line if you want to make the directory if it doesn't exist
// mkdir(str_replace('//','/',$targetPath), 0755, true);
move_uploaded_file($tempFile,$targetFile);
}
echo '1';
?>