okay in my ftp I chmod the directory "incoming" to 777 - which I thought was a BAD thing. But when I do that, the image path works and you can browse to the directory and see all the files there now.
Index of /incoming

Still doesn't preview in FF...

Okay - it's not uploading large files either (2mb - should be able to do up to 50mb)...I combined an email form processor and the image upload processor I had purchased the coding for and this is the mess I have...

I think it's only working half the time in IE and if FF isn't displaying it, I probably have some messed up coding. From what I have experienced with FF before is if my code is sloppy, it will definitely show me so. lol


Here's the whole thing I have going on:
PHP Code:
<?php
$datetime 
date("l dS of F Y H:i:s");
$message  "On $datetime\n";
$message .= "<br />Here are the details of the form submission:\n";
while (list(
$key$val) = each($_POST)) {
 if (
$key == 'redirect') {
     
$redirect $val;
    }
 
 if ((
$key != 'redirect') and ($key != 'recipient')) {
  
$val trim($val);
  
$message .= "<br />$key$val\n";
 }
}
/*
A function to upload a file.
@param $index - form field index (int)
@param $is_small - bool value to indicate that this is a small file
@return bool true if ok & error message in the case of error
*/
function ProcessUploadedFile($index$is_small) {
 global 
$s_path$b_path;
 
 
$msg '';
 if (
$is_small) {
  
$prefix 's';
  
$path $s_path;
 } 
 
/*else {
  $prefix = 'b';
  $path = $b_path;
 }*/
 
if ($_FILES[$prefix.'_userfile'.$index]['size'] > 0) {
  if (
$_FILES[$prefix.'_userfile'.$index]['size'] > 52428800) { //50MB
   
$msg "Your uploaded file size is more than 50MB so please reduce the file size and then upload";
  } else {
   if ((
$_FILES[$prefix.'_userfile'.$index]['type'] != 'image/pjpeg') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'image/gif') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/postscript') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/x-stuffit') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/zip') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'image/tiff') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/pdf') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/octet-stream') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/msword') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/vnd.ms-excel') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'text/plain')) {
    
$msg "Your uploaded file must be of JPG, GIF, PSD, PDF, EXCEL, WORD, or PLAIN TEXT. Other file types are not allowed";
   } else {
    if (
move_uploaded_file($_FILES[$prefix.'_userfile'.$index]['tmp_name'], $path.$_FILES[$prefix.'_userfile'.$index]['name']) === false) {
     
$msg "Failed to move uploaded file";
    }
   }
  }
 } else 
$msg "There was no file selected";
 if (
$msg == '') return true;
 else return 
$msg;
}
$s_path "incoming/"//path to save small images
//$b_path = "incoming/"; //path to save large images
 
for ($i 1$i 4$i++) { //cycle for small images
 
$result ProcessUploadedFile($itrue);
 if (
$result !== true) {
  echo 
'&nbsp;';
 } else {
  echo 
'Your file was uploaded successfully! You will also receive an e-mail confirmation of your successful file upload status for your records. </br>';
  echo 
"<br>";
  
//Grabbing image info from the server
  
$image $_FILES["s_userfile1"]["name"];
 
 
  
//IF THE FILE IS NOT a PSD, PDF, WORD, ETC, THEN DISPLAY IMAGE
  
if (($_FILES["s_userfile1"]["type"] != 'application/postscript') && ($_FILES["s_userfile1"]["type"] != 'application/x-stuffit') && ($_FILES["s_userfile1"]["type"] != 'application/zip') && ($_FILES["s_userfile1"]["type"] != 'image/tiff') && ($_FILES["s_userfile1"]["type"] != 'application/pdf') && ($_FILES["s_userfile1"]["type"] != 'application/octet-stream') && ($_FILES["s_userfile1"]["type"] != 'application/msword') && ($_FILES["s_userfile1"]["type"] != 'application/vnd.ms-excel') && ($_FILES["s_userfile1"]["type"] != 'text/plain'))  
 
  
//echoing image path to display image
  
{echo '<img src="';
  echo 
'/';
  echo 
$s_path;
  echo 
$image;
  echo 
'"><br><br>';
 } 
 
  
//IF THE FILE IS AN IMAGE, DISPLAY FILE NAME
 
  
if (($_FILES["s_userfile1"]["type"] != 'image/pjpeg') && ($_FILES["s_userfile1"]["type"] != 'image/png') && ($_FILES["s_userfile1"]["type"] != 'image/gif'))  
  { echo 
"We have received your file: <strong><font color='#FF0000'>";
    echo  
$image;
  echo 
"</font></strong><br><br>[<a href='javascript:window.close();'>Close window</a>]";
  }
 }
}
/*for ($i = 1; $i < 4; $i++) { //cycle for large images
 $result = ProcessUploadedFile($i, false);
 if ($result !== true) {
  echo 'Failed to upload image #'.$i.' (large) - "'.$result.'"</br>';
 } else {
  echo 'Image #'.$i.' (large) was uploaded successfully!</br>';
 }
}*/
// echo "$key: $val<br />";//debugging info
    
$lcval strtolower($val);
 
$pos strpos($lcval,"http://");         
 
$ServerName $_SERVER["HTTP_HOST"];
$message .= "<br /> Site: $ServerName \n";
$visitorip     $_SERVER['REMOTE_ADDR'] ;
$message .= "<br /> IP: $visitorip\n";
$msg1 .= "<br /> Please make sure you have entered a Company Name or First and Last Name <br><br>\n";
$msg2 .= "<br /> Please make sure you have entered an e-mail address<br><br>\n";
 
//validation
if (strlen($_POST['company']) <1)  
{
echo  
$msg1;
}
if (
strlen($_POST['company']) >25)  
{
echo  
$msg1;
}
if (! 
ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+'$_POST['vis_email']))
{
echo  
$msg2;
}
else if (
strlen($_POST['vis_email']) == )
{
echo  
$msg2;
}
//end validation
 
$vis_email $_POST['vis_email'] ;
 
//Format Email
$email    "myemail address, $vis_email";
$subject  "File Upload";
$headers  "From: $vis_email\r\n";
$headers .= "Content-type: text/html\r\n";
$upload .= "$image";
//Send Email
mail($email,$subject,$message,$headers,$upload);
 
?>