
April 7th, 2004, 09:08 AM
|
|
Contributing User
|
|
Join Date: Mar 2004
Location: Denmark
Posts: 174
Time spent in forums: 43 m 46 sec
Reputation Power: 5
|
|
|
PSD document extentions
I am wondering, what should i put in instead of "image/psd" if i would like to upload psd pictures to the server ? Because just writing the "/psd" dosn't work.
- Pheifel
here is the script:
PHP Code:
if ($_FILES['imagefile']['type'] == "image/psd") {
copy ($_FILES['imagefile']['tmp_name'], "uploads/tegninger/".$USERID."_".$sat.".psd") or die ( "Kunne ikke kopiere" );
mysql_query("INSERT INTO USER_uploads (id , navn , beskrivelse , userid , type , time , clicks) VALUES ('','$navn','$beskrivelse','$USERID','$type','NOW ( )','0')");
echo "<br>Vi har modtaget din tegning, og den er i dit galleri" ;
echo "<br>Navn: $navn". "" ;
echo "<br>Størrelse: " .$_FILES ['imagefile' ][ 'size' ]. "kB" ;
echo "<br>Type: " .$_FILES ['imagefile' ][ 'type' ]. "" ;
echo "<br>Overførslen er komplet" ;
} else {
echo "Forkert filtype: " .$_FILES['imagefile']['type']. ". Filen kunne ikke kopieres";
|