I really dont know what I'm missing, I integrated Uploadify with my CodeIgniter based site and it's not working.
When I chose multiple images, some of them are say it's complete, and some of them give an IO Error, and the images never get uploaded to the folder
$('#file_upload').uploadify({
'uploader' : '<?php echo base_url(); ?>uploadify/uploadify.swf',
'script' : '<?php echo base_url(); ?>ihirdet/feltoltes',
'cancelImg' : '<?php echo base_url(); ?>uploadify/cancel.png',
'folder' : '<?php echo base_url(); ?>uploads/',
'fileExt' : '*.jpg;*.gif;*.png',
'displayData' : 'speed',
'wmode' : 'transparent',
'simUploadLimit' : 5,
'multi' : true
});
and my controller
function feltoltes() {
if ( ! empty($_FILES)) {
$tempFile = $_FILES['file_input']['tmp_name'];
$targetPath = $_SERVER['DOCUMENT_ROOT'] . '/SVN/handinhand/assets/images/galleries';
$targetFile = str_replace('//','/',$targetPath) . $_FILES['file_input']['name'];
move_uploaded_file($tempFile,$targetFile);
}
echo '1';
}
Does anybody see some error in these codes? Or just give me a hint?
Thank you