Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Upload Progress Bar??? HELP!!!
Old 09-05-2006, 12:29 AM 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
 
 
Register now for full access!
Old 09-05-2006, 10:42 AM Re: Upload Progress Bar??? HELP!!!
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-05-2006, 02: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.
__________________

Please login or register to view this content. Registration is FREE
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Old 09-09-2006, 10: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.23678 seconds with 12 queries