View Full Version : Upload Progress Bar??? HELP!!!

09-05-2006, 06:55 AM
hey so i have a working PHP code for a upload form, but i wana make a progress bar for it. and yes, i KNOW that php can't do it, but i heard Java can. so whats the code?

here is my existing PHP code:

$bad_types = array('application/octet-stream','application/x-msdos-program','application/x');
if( in_array( $_FILES['uploadedfile']['type'], $bad_types ) )
echo "That File type is not supported.";
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded. here is the link to your file: <a href=uploads/". basename( $_FILES['uploadedfile']['name']). ">". basename( $_FILES['uploadedfile']['name'])."</a>";
} else{
echo "There was an error uploading the file, please try again!";

09-05-2006, 08:30 PM
please? :(

09-05-2006, 11:10 PM
First of all, your in the wrong section. Javascript is not Java.

I found this link a while ago and you might like it.