Reply
Upload Progress Bar??? HELP!!!
Old 09-04-2006, 11:29 PM Upload Progress Bar??? HELP!!!
Novice Talker

Posts: 12
Trades: 0
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 ASP can. so whats the code?

here is my existing PHP code:

PHP Code:
<?php
$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.";
}
else
{
$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!";
    }
}
?>
JustinMs66 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 09-05-2006, 09:42 AM Re: Upload Progress Bar??? HELP!!!
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,942
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
The only way I know how to do it via ASP is through ASPUpload, a pretty kickass component by Persits Software.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-05-2006, 01:50 PM Re: Upload Progress Bar??? HELP!!!
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
Quote:
Originally Posted by JustinMs66 View Post
and yes, i KNOW that php can't do it, but i heard ASP can. so whats the code?
If you would rather use PHP (and have root), it is possible.
See your other thread.

Oherwise, the ASPUpload component seems like a suitable alternative.
__________________
mp3blog.us
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Old 09-09-2006, 09:28 AM Re: Upload Progress Bar??? HELP!!!
Skilled Talker

Posts: 95
Trades: -1
ive got a link for a pritty decent 1 sumwher lol
nitronfire is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Upload Progress Bar??? HELP!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09653 seconds with 13 queries