Gotchas
Why wont my FLV or QuickTime Movie upload to my website even with "enctype="multipart/form-data" set?
Here's one for the record books. It gets people all the time, and it got me once again. I had a nice plugin for cakePHP that let me upload images. After a small amount of work it ran great. But what I ultimately wanted to do was upload FLV files to the new video section of my site. I kept having issues. Each time, the images would upload great, but the videos would not. I kept trying to check MIME types to make sure I had the 'video/x-flv' type set. That didn't work. Uploading Quicktime files didn't work. I'm like "Hmmmmm"
After a couple hours of head banging, it finally occurred to me that there was nothing wrong with the code in my form. This as a PHP issue. Sure enough, you take a look at the PHP info file and there is a "upload_max_filesize" setting" that was only set to 2MB for me. There was nothing wrong with the video other than the fact that they were all over 2MB. So I set that and thought, "All is well now . . ." But wait! There is one more setting also. You need to ramp up the "post_max_size" variable as well. By default, both variables are set low for some light JPEG images and that's it.
The video has no sound, because I'm exhausted from this, but I'll do a voice over one day.
blog comments powered by Disqus
You are still using Internet Explorer 6, so you can't have soup—or look at this site. I would really prefer you download