Join Us!
  • WEB Hosting By Accu








Upload Files

This is a discussion on Upload Files within the Web Development forums, part of the Programming & Web Development category; Hi! I would like to check if anyone knows how to design a website allow visitors to upload files. Thanks ...


Reply
 
LinkBack Thread Tools
BRL Addicted  
Posts : 204
Reputation : ansonkelvin can only hope to improve
 
BRL$: 0
May 25th, 2008, 03:07 AM

Default Upload Files


Hi! I would like to check if anyone knows how to design a website allow visitors to upload files.
Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Ads By Google

heynsanne's Avatar
BRL Addicted  
Posts : 157
Reputation : heynsanne is on a distinguished road
 
BRL$: 0
May 25th, 2008, 06:22 AM

Wink Re: Upload Files


Quote:
Originally Posted by ansonkelvin View Post
Hi! I would like to check if anyone knows how to design a website allow visitors to upload files.
Thanks in advance.
I also would like to know this information, please. I've tried to make my own website but as I'm a total newbie to web design/development and all the rest of it, I fail to get things to work. Not that I ever give up..I will go on trying till I die. If you get the answer to this, would you be so kind to pm me Kelvin?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Moderator  
Posts : 1,256
Reputation : sysax will become famous soon enoughsysax will become famous soon enough
 
BRL$: 0
May 25th, 2008, 06:53 AM

Default Re: Upload Files


First you need a host that allows to upload a higher file than 1 kb.
Then, download a PHP script on the net, it's easy to find it around here.
__________________
~ Delphi Programmer ~
> Please Report if you see something that breaks the rules! <
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
BRL Addicted  
Posts : 204
Reputation : ansonkelvin can only hope to improve
 
BRL$: 0
May 25th, 2008, 08:47 AM

Default Re: Upload Files


sysax, I believe that all host use allow us to upload any file bigger than 1kb.

I will not use those host does not allow to upload any file bigger than 1kb, it will take more time to upload our website.

Is it possible to recommend those website have such scripts?
Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
BRL Addicted  
Posts : 213
Reputation : tukyunaaya is on a distinguished road
 
BRL$: 0
July 10th, 2008, 07:42 AM

Default Re: Upload Files


to make such a site you need to purchase a god host with high hosting capacity..
and after that its ur programming skills to make space for the new upload which the users will make..
__________________
LATEST TRICKS AND HACKS


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Moderator  
Posts : 1,198
Reputation : GoycP will become famous soon enough
 
BRL$: 407.34
July 10th, 2008, 08:03 AM

Default Re: Upload Files


You can use the following code:

For the HTML/PHP file you want the upload form available:
Code:
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" /> 
<br />
<input type="submit" name="submit" value="Submit" />
</form>
This is for the php file connect from that html code,
then connect to database and also hosting:
PHP Code:
<?php
if ($_FILES["file"]["error"] > 0)
  {
  echo 
"Error: " $_FILES["file"]["error"] . "<br />";
  }
else
  {
  echo 
"Upload: " $_FILES["file"]["name"] . "<br />";
  echo 
"Type: " $_FILES["file"]["type"] . "<br />";
  echo 
"Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
  echo 
"Stored in: " $_FILES["file"]["tmp_name"];
  }
?>
Remember to add some file restriction else people will upload .exe which contain virus/trojan/spyware to your host.
__________________
I'm who I'm!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
BRL Addicted  
Posts : 213
Reputation : tukyunaaya is on a distinguished road
 
BRL$: 0
July 11th, 2008, 02:23 AM

Default Re: Upload Files


@ GoycP

thats great bro..
i was just looking for a php script..i lost mine when i formated my pc last time..
but thanx any way for the effort..
__________________
LATEST TRICKS AND HACKS


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
New Foot Prints  
Posts : 37
Reputation : vikassaini01 is on a distinguished road
 
BRL$: 140.77
August 13th, 2008, 01:47 AM

Smile Re: Upload Files


Checkout this free Flash based upload script. http://www.element-it.com/MultiPowUpload.aspx MultiPowUpload is easy client-side solution that can be used to perform file uploads from a user machine to the web server. MultiPowUpload is a Macromedia Flash movie supported by most browsers and needs just Flash player plug-in on users side and any standard file upload script on server side. In a pure-HTML solution, client files can be uploaded to the server via a multipart/form-data form with one or more items on it. However, the form-based approach has the following limitation: * The "Choose File" dialog shown by a browser does not allow multiple selections. * To upload multiple files at once, the HTML form must contain multiple boxes, and each file must be selected individually. * An entire folder cannot be selected for uploading. * There is no way to specify file filters to be displayed in the Files of Type box of the "Choose File" dialog. * There is no way to put a limit on the type, size and number of files being uploaded before an upload begins. * File date information cannot be preserved. * There is no progress state information while upload. MultiPowUpload features: * Multiple file selection at once by Ctrl or Shift keys. * Selection the all files of the folder by Ctrl+A hot key. * Rich progress and status information during the upload process. * File filters by extension in the "Choose Files" dialog. * Limit the maximum allowed size of individual files. * Limit the maximum allowed total size of files. * Limit the maximum allowed number of files to be uploaded at the same time. * Possibility to cancel an upload anytime. * Access to files date modified, date created, name, size and creator(Mac users) information. * Download multiple files feature. * Multilingual and customizable interface. * Interface can be replaced with custom HTML and Java Script code. * Supports SSL (HTTPS) and authentication. MultiPowUpload system requirements: Server's side: * Any OS and web server. * Standard script which receives files sent using RFC 1867 protocol on server side. MultiPowUpload compatible with most upload scripts and components. Built-in ASP, ASP.NET, PHP and Perl scripts examples are included. User's side: * Any OS. * The browser has to be RFC 1867 compatible in order to upload files. Most known browsers are RFC 1867 compatible. * Macromedia Flash Player 8 plug-in should be installed.
__________________
Don't Forget to Press THANKS Button if you like my Post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
New Foot Prints  
Posts : 46
Reputation : vijayalakshmioct8 is on a distinguished road
 
BRL$: 2.02
August 14th, 2008, 07:41 AM

Default Re: Upload Files


Quote:
Originally Posted by GoycP View Post
You can use the following code:

For the HTML/PHP file you want the upload form available:
Code:
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" /> 
<br />
<input type="submit" name="submit" value="Submit" />
</form>
This is for the php file connect from that html code,
then connect to database and also hosting:
PHP Code:
<?php
if ($_FILES["file"]["error"] > 0)
  {
  echo 
"Error: " $_FILES["file"]["error"] . "<br />";
  }
else
  {
  echo 
"Upload: " $_FILES["file"]["name"] . "<br />";
  echo 
"Type: " $_FILES["file"]["type"] . "<br />";
  echo 
"Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
  echo 
"Stored in: " $_FILES["file"]["tmp_name"];
  }
?>
Remember to add some file restriction else people will upload .exe which contain virus/trojan/spyware to your host.
Hi..thanks for the code
i was searching for this information..
i will try it in my site
Can we use any uploader.? do we have software for that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
tusherdcc's Avatar
BRL Addicted  
Posts : 362
Reputation : tusherdcc is on a distinguished road
 
BRL$: 0
November 4th, 2008, 22:11 PM

Default Re: Upload Files


use filezill software for upload the desired file to your host.
I do prefer that application for uploading the mass file to server.
you can also use cpanel to upload file to your server. but it depends upon your service provider weather they allow the cpanel system for you or not.

try and inform me if you get success or failed.
Search filezill in net. it is a free software...
__________________
Lover you country people. Love your country:)
http://tusher.xenexbd.com --my personal blog
http://kobiraj.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
BRL Addicted  
Posts : 650
Reputation : ~mrniceguy~ is on a distinguished road
 
BRL$: 0
November 5th, 2008, 13:36 PM

Default Re: Upload Files


if using software, i think it will become much more easier. sometime we can do somethign on our website even we don't know the basic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
New Foot Prints  
Posts : 38
Reputation : smarty231 is on a distinguished road
 
BRL$: 222.89
November 12th, 2008, 05:59 AM

Default Re: Upload Files


I will not use those host does not allow to upload any file bigger than 1kb, it will take more time to upload our website.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
kaka135's Avatar
BRL Addicted  
Posts : 585
Reputation : kaka135 is on a distinguished road
 
BRL$: 1,017.78
November 5th, 2009, 03:17 AM

Default Re: Upload Files


There's also a jQuery plugin, where you can allow multiple file upload. The site provides example on how to use the plugin, I think it's quite simple to follow.

You can check it out from this link:
http://www.fyneworks.com/jquery/multiple-file-upload/
__________________
Feel free to visit my blog i-playground :)
-- Get paid to read articles at ReadBud --
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
files, upload


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you upload a script from your files into your webhosting indieover General Chat 1 April 19th, 2008 07:19 AM
how can I make my video upload script only except certain types of files by extension Rss_Feeds PHP 0 September 20th, 2007 01:34 AM
Run FTP without upload file Rss_Feeds PHP 0 September 17th, 2007 13:00 PM
How do upload a file from one PC to another PC using PHP? Rss_Feeds PHP 0 September 6th, 2007 22:10 PM
check file upload ext before upload?... Rss_Feeds PHP 0 July 21st, 2007 21:00 PM

Upload Files