ציטוט:
נכתב במקור על ידי Deagly
תעשה ככה:
PHP קוד:
if ($ft != "image/gif" || $ft != "text/txt" || $ft != "image/jpeg" || $ft != "image/jpg" || $ft != "image/swf") {
|
תראה את הקוד שלי
PHP קוד:
elseif ($ft == "image/gif" || $ft == "text/txt" || $ft == "image/jpeg" || $ft == "image/jpg" || $ft == "image/swf") {
copy( $file1 , "uploads/".time()."-".$file1_name ) or die ("the file not copy");
echo "file url:<br> <a href=\"uploads/".time()."-".$file1_name."\">http://www.***.net/u/uploads/".time()."-".$file1_name."</a>";
}
הקוד בסדר גמור לפי מה שאני רואה, אבל בכל זאת זה נותן לי להעלאות רק קבצים
בפורמט gif.
אשמח אם תעזור.
יום טוב.