4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: mrmwla on March 18, 2005, 08:10:43 AM
-
On attempting to upload mp4 files, I get this error message:
"INVALID TYPE FILE -- mp4 application/octet-stream"
I think I have everything configured correctly:
1. ADDED TO upload_definitions.php :
$mime_type_match['mp4'] = array("video/mp4");
2. PHP upload_max_filesize = 20MB
3. Server has mp4 MIME type defined
Any ideas. I've searched the forum for "MP4", but not a single item was found!
Thanks
-
The error message shows you that your mp4 file has the following mime-type:
application/octet-stream
You need this in upload_definitions.php
$mime_type_match['mp4'] = array("video/mp4", "application/octet-stream");
Jan
-
Hi Jan,
could you please give me the text i would place into the MP4.html template as a copy of the wmv or any other ones do not work.
Kind Regards,
Wesley.
-
Hi Jan, V@no & Others...
Just an update - i found a script on the net and my mp4.html now looks like this:
<!-- Template file for MP4 Movies -->
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="320" height="195">
<param name="src" value="{media_src}">
<param name="autoplay" value="true">
<param name="controller" value="true"><embed height="195" pluginspage="http://www.apple.com/quicktime/download/" src="{media_src}" type="video/quicktime" width="320" controller="true" autoplay="true">
</object>
It now can play mp4 files, but it buffers the entire file and does not give any controls to start or stop the file...
Were Nearly Nearly there - so close!!
Ciao
WeZ
-
Hello All,
OK, i think i've resolved a working mp4.html for you to embed uploaded MP4 Files to your site...
Here is the Code:
<!-- Template file for MP4 Movies -->
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="256" codebase="http:www.apple.com/qtactivex/qtplugin.cab">
<param name="SRC" value="{media_src}">
<param name="CONTROLLER" value="TRUE">
<param name="AUTOPLAY" value="TRUE">
<param name="CACHE" value="TRUE">
<param name ="SaveEmbedTags" value="true">
<embed
src="{media_src}"
width="320" height="256"
controller="TRUE"
autoplay="TRUE"
cache="TRUE"
SaveEmbedTags ="true"
type="video/quicktime"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>
Have Fun...
Ciao
WeZ
-
The error message shows you that your mp4 file has the following mime-type:
application/octet-stream
You need this in upload_definitions.php
$mime_type_match['mp4'] = array("video/mp4", "application/octet-stream");
Jan
$mime_type_match['mp4'] = array("video/mp4", "video/mp", "application/octet-stream");