[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).