collint20
08-07-2007, 09:05 PM
I feel my problem is with the path, could you verifys this for me.
Here is my code:
if ($pic_file_size >250000){$msg=$msg."file too big.<BR>";
$file_upload="false";}
if (!($pic_file_type =="image/pjpeg" OR $pic_file_type=="image/gif")){$msg=$msg."file must be of JPG or GIF.";
$file_upload="false";}
$add = $_SERVER['DOCUMENT_ROOT'].'/BSimages/'.$pic_file_name;
if(move_uploaded_file ($pic_file, $add)){
}else{echo "Failed to upload file Contact Site admin to fix the problem";}
I have verified that $pic_file exists (ok)
I have set chmod permissions to 777 on the BSimages folder (ok)
This script is running in the folder 'bstore' (path:/public_html/bstore/BSimages/)
One thing interesting is that
when I echo $pic_file it returns the statement 'array'
when I echo $pic_file_name nothing returns
Thank you,
Collin
Here is my code:
if ($pic_file_size >250000){$msg=$msg."file too big.<BR>";
$file_upload="false";}
if (!($pic_file_type =="image/pjpeg" OR $pic_file_type=="image/gif")){$msg=$msg."file must be of JPG or GIF.";
$file_upload="false";}
$add = $_SERVER['DOCUMENT_ROOT'].'/BSimages/'.$pic_file_name;
if(move_uploaded_file ($pic_file, $add)){
}else{echo "Failed to upload file Contact Site admin to fix the problem";}
I have verified that $pic_file exists (ok)
I have set chmod permissions to 777 on the BSimages folder (ok)
This script is running in the folder 'bstore' (path:/public_html/bstore/BSimages/)
One thing interesting is that
when I echo $pic_file it returns the statement 'array'
when I echo $pic_file_name nothing returns
Thank you,
Collin