Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 29-11-2007, 11:19 AM   #1 (permalink)
Alive Again...
 
satyamy's Avatar
 
Join Date: May 2005
Location: Mumbai
Posts: 1,668
Question File Upload in Website using ASP or HTML or PHP


Hello Friends
I need to make a File Upload Section in Website

I need to make 1 Text Box (which days Description)
and one browse button (which browse the file)
and one Submite Button

when Someone Click submit button it will take some time to upload the file and after this it will give a Link to download that File

I searched google and Found

http://www.15seconds.com/issue/001003.htm

But not understanding how to setup this in Website because i dont know ASP

I have 2 sites with hosting from techiehost.org and host4cheap.org

Can anyone help ?

Or if any one has any simple file upload method than Pls tell
__________________
! जय हिंद ! Proud to be INDIAN
satyamy is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 29-11-2007, 02:20 PM   #2 (permalink)
Right Off the Assembly Line
 
jaya's Avatar
 
Join Date: Aug 2005
Location: Allappy
Posts: 12
Default Re: File Upload in Website using ASP or HTML or PHP

Example File Upload Form using php

A file upload screen can be built by creating a special form which looks something like this:

<form enctype="multipart/form-data" action="jaya_upload.php" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Upload file: <input name="userfile" type="file" />
<input type="submit" value="Upload" />
</form>

jaya_upload.php code is
<?php
// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
// of $_FILES.

$uploaddir = 'uploads/';
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);

echo '<pre>';
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "File is valid, and was successfully uploaded.\n";
} else {
echo "Possible file upload attack!\n";
}

echo 'Here is some more debugging info:';
print_r($_FILES);

print "</pre>";

?>
__________________
jayadev
jaya is offline  
Old 29-11-2007, 06:45 PM   #3 (permalink)
Alive Again...
 
satyamy's Avatar
 
Join Date: May 2005
Location: Mumbai
Posts: 1,668
Smile Re: File Upload in Website using ASP or HTML or PHP

Thanks Jay
Will try it and let u know
__________________
! जय हिंद ! Proud to be INDIAN
satyamy is offline  
Old 29-11-2007, 06:49 PM   #4 (permalink)
Rebooting
 
Choto Cheeta's Avatar
 
Join Date: Aug 2004
Location: 220.225.82.33
Posts: 6,266
Default Re: File Upload in Website using ASP or HTML or PHP

with all do respect to jaya...

@satyamy

rather than custome script why dont you try a readmade free or paid script and modify it according to ur needs ???

http://www.hotscripts.com/PHP/Script...ems/index.html

__________________
rebooting
ChotoCheeta.com
Choto Cheeta is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
where to upload my website anuragsedai QnA (read only) 5 23-11-2007 06:44 PM
How to upload website H.Lalnunmawia QnA (read only) 24 03-02-2007 11:12 AM
How to Upload RS file to FTP ?? hmmmmmmmmmmmmm QnA (read only) 1 26-11-2006 09:10 PM
want to upload 565 mb file ashishkamat QnA (read only) 15 05-03-2005 12:09 PM

 
Latest Threads
- by topgear
- by abhidev
- by clmlbx
- by Sarath

Advertisement




All times are GMT +5.5. The time now is 05:44 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2