Welcome Guest, Not a member yet? Register   Sign In
Problems uploading mov files
#1

[eluser]Unknown[/eluser]
when I try to upload mov files using the uploader class I get the error: "The filetype you are attempting to upload is not allowed."

Jpg and swf files upload ok.

I have included mov in my uploader config:

$config['allowed_types'] = 'gif|jpg|png|swf|mov';

And the mimes.php file has:

'mov' => 'video/quicktime',

I've also tried looking at the file data:

file_name: sample.mov
file_type: video/quicktime
raw_name: sample
orig_name:
file_ext: .mov

I'd be very grateful if anyone can help!

Thanks
#2

[eluser]Cristian Gilè[/eluser]
Do you rename the uploaded file? If you set

Code:
$config['file_name']

make sure that the extension provided is also an allowed file type. For example:

Code:
$config['file_name'] = 'new_name.mov';



Cristian Gilè
#3

[eluser]InsiteFX[/eluser]
You can also try adding this line to your .htaccess file.

Code:
AddType video/quicktime .qt .mov

InsiteFX
#4

[eluser]Unknown[/eluser]
Thanks for your help. I'm not renaming the files and I've tried changing the .htaccess file but it still doesn't work.

I set up a basic uploader just using php and that works but I would rather use the CI uploader.




Theme © iAndrew 2016 - Forum software by © MyBB