CodeIgniter Forums
HTML 5 Video Uploader ogg/ogv - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: HTML 5 Video Uploader ogg/ogv (/showthread.php?tid=31277)



HTML 5 Video Uploader ogg/ogv - El Forum - 06-12-2010

[eluser]pdxbenjamin[/eluser]
Hi

I'm trying to upload an ogg/ogv video file, but it's not working at all.
I've added this to my mime.php
'ogg' => 'application/ogg',
'ogx' => 'application/ogg',
'ogv' => 'video/ogg',
'oga' => 'audio/ogg'

I've modified my php.ini file to allow uploads of 200M. And my test .ogv is 57M

I'm using the uploading scripts from here.
http://ellislab.com/codeigniter/user-guide/libraries/file_uploading.html

I'm getting this error... You did not select a file to upload.
I'm not sure how to view more detailed errors...

I'm not sure what else I'm doing wrong ..


HTML 5 Video Uploader ogg/ogv - El Forum - 06-13-2010

[eluser]must[/eluser]
Be sure that you change both the upload_max_filesize and post_max_size directives. If you already did and it still doesn't work check your file input name it have to be "userfile" if you're doing $this->upload->do_upload() in your php code if you want a customized input file name do $this->upload->do_upload('field name').

The file type should not be a problem (ogg or what ever) cause if it were the error would be something like 'You're not allowed to upload this type of file'.


HTML 5 Video Uploader ogg/ogv - El Forum - 06-13-2010

[eluser]pdxbenjamin[/eluser]
must, yes thank you... The post_max_size was still set to the default 8M. Once increased it uploaded just fine.


Thank you!