Hi. As you know from my previous questions, I’m developing a PHP upload/file system. I successfully
upload files to the server and the path to the database for fetching. Now, i’ve stumbled upon a catching
conflict. When i upload audio and image files, it successfully uploads and displays on that person’s profile page (content.php). But when someone tries to upload a simple mp4 video file, it uploads to the server and database, like expected, but… it shows the not found error(the white square with the red “x” inside of it). Right on the center of where the video is supposed to be. The pages pick up all image and audio files, but why not video files? Anyway, here’s my code for content.php:
[php]
G.B. -- Content <?php session_start $userid = $_GET["id"]; $directory = $_GET["Directory"]; $type = $_GET["Type"]; if ($type == "image/jpeg" || $type == "image/png" || $type == "image/pjpeg") //if type is an image type... { ?> " height = "500" width = "600" />
<?php } if ($type == "audio/mpeg") //If type is an mp3 file... { ?>
<?php } if ($type == "video/mp4") //if type is a video type { ?>
<?php } ?>
[/php]
by the way, all files are stored in my root folder, then in another folder called uploads. belevie me it uploads to “uploads/” folder and the database. but why does only that one tag above give me a display error? Remember, everything else is found on the server and displayed successfully, but why not this?
Thanks. and sorry for all the annoying posts