source code: index.php~




800*1024) { $errors [] = "File Too large"; } if (! is_writable ( $savePath )) { $errors [] = "File Destination not writeable"; } $fileDst = $savePath . DIRECTORY_SEPARATOR . $fileName; $filePrifix = basename ( $fileName, "." . $fileExt ); if(file_exists($fileDst)) { $errors [] = "Filename exists"; } if (count ( $errors ) == 0) { if (@move_uploaded_file ( $fileTemp, $fileDst )) { $output['Destination'] = $fileDst; } else { $errors [] = "Error Saving File"; } } if(count($errors) > 0) { echo "

Upload Error

" ; foreach ($errors as $error){ echo $error , "
" ; } }else{ echo "

File Uploaded

" ; foreach ($output as $key => $value){ echo $key . ": " .$value , "
" ; } } } ?>