4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Shap on November 25, 2002, 05:04:26 AM
-
Im not having any luck when I try uploading videos or mp3's.
When I try uploading mp3's I get this error
Error uploading image file:
MF27.mp3: Invalid file type (mp3, audio/mp)
Also is there a differents between mpg and mpeg's? I'm trying to upload mpegs and its not working.
Another thing, I got AVI files to upload, but they will not display in the page, i got to download them to work, anyone know whats going on?
Thanks!
-
The script checks the uploaded file mim type against the entry in "includes/upload_definitions.php". You can see the mime type in the error message:
MF27.mp3: Invalid file type (mp3, audio/mp)
Just add the mime type to the appropriate array in upload_definitions.php:
$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg", "audio/mp");
If you add new file types you must ensure to add the extension to "Valid file extensions" in your settings. Note its a difference between mpg and mpeg.
Jan
-
so if I want mpg, and mpeg to display video, what would I do? If i put that code in the upload_definitions.php file should everything work out?
-
Just try it ;)
Jan
-
I guess I'm just wondering
$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg", "audio/mp");
does the audio/mpeg" tell it to play audio? If so what code would I use to have it play both audio and video, "audio/video/mpeg"?
-
Ok, i figured out what your talking about, but now my problem is, when I try uploading video's it acts like its uploading then says
Please recheck the marked fields.
and doesnt upload.
Anyone figured out what you need to do to make video's upload?
-
and what marked places it shows?
make sure that max upload size is correct in admin control panel settings.
-
its showing the uploaded file, as the check marked place. I double checked image size its at 5000kb, which is plenty
-
make sure that in php.ini max upload size is enough too.
-
where would php.ini be found? i searched for it and cant find it
-
I dont know if u get the message I sent on ICQ, but here it is:
do u run 4images on your own web server or it's hosted somewere? if it's on your server, then check for php.ini file in c:/windows/ dir.
if its on somewhere host, then u can write little script that will show u php.ini settings:
<?php
phpinfo();
?>