Welcome Guest, Not a member yet? Register   Sign In
Uploading 2 files
#7

[eluser]LuckyFella73[/eluser]
Did you try this to get details about the failure:
Code:
<?php
$this->load->library('upload');
if($_FILES['userfile_watermark']['size']>0)
{
$new_filename_watermark = $this->file_name($_FILES['userfile_watermark']['name']);
$config['upload_path'] = './sounds/watermark';
$config['allowed_types'] = 'mp3|wav';
$config['file_name'] = $new_filename_watermark;
$this->upload->initialize($config);
#$this->upload->do_upload();
if ( ! $this->upload->do_upload())
{
  echo $this->upload->display_errors();
  exit();
}

$this->upload->clear();
}
?>

An other thing (just thinking about folder permissions) you said:
Quote:both files are uploaded to /sounds/watermark/

But your script has 2 different upload folders defined. Maybe one
the folders has not the right permissions? (That's why I would
implement the output of errors while trying to upload like suggested).


Messages In This Thread
Uploading 2 files - by El Forum - 03-21-2012, 02:27 AM
Uploading 2 files - by El Forum - 03-21-2012, 03:00 AM
Uploading 2 files - by El Forum - 03-21-2012, 03:32 AM
Uploading 2 files - by El Forum - 03-22-2012, 05:48 AM
Uploading 2 files - by El Forum - 03-22-2012, 06:00 AM
Uploading 2 files - by El Forum - 03-22-2012, 06:19 AM
Uploading 2 files - by El Forum - 03-22-2012, 06:25 AM
Uploading 2 files - by El Forum - 03-22-2012, 08:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB