PHP
  Home arrow PHP arrow Page 5 - Creating a Multi-File Upload Script in PHP
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Creating a Multi-File Upload Script in PHP
By: Jonathan Wichmann
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 627
    2003-10-27

    Table of Contents:
  • Creating a Multi-File Upload Script in PHP
  • Script 1: Number of Upload Boxes Required
  • Script 2: Creating the Dynamic Form
  • Script 3: The Big Copy Bang Page
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating a Multi-File Upload Script in PHP - Conclusion


    (Page 5 of 5 )

    This little script I am sure will come in handy when you have multiple files that you want to upload all at once. Some other things you could add to this script are listed below.

    • Insert file names into a mysql database.
    • Get the size of the file and store that in the database too.
    • Create a temp text file delimited by commas for the files that have trouble uploading and at the end of the script do a retry on those files.
    • Create a mass-delete of files.

    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Where do the files get uploaded to? I followed this line by line and all it does is...
       · This gives a great simple tutorial on how to use this script on your own server,...
       · I also copied all the instructions and it worked beautifully.The test files I...
       · Can someone please tell me how to change the location of uploaded...
       · the fiels will be uploaded to the directory where the source php files are...
       · mani want to make a form with upload and mail function.someone will write a...
       · This is the code for copying:$copy = copy($_FILES['uploadFile'....
       · For some of you who are still looking for another way to upload multiple files with...
       · The solution presnted is clumsy. Using Silver Light??! to me that's...
       · I copied the files to my server, took the liberty of renaming the php's as per our...
       · Check my demo project here -...
       · any suggestions how to streamline this code into just one page, where the 'select...
       · Demo & working code for Multi-file-upload PHP Script here:...
     

    PHP ARTICLES

    - Making Usage Statistics in PHP
    - Installing PHP under Windows: Further Config...
    - File Version Management in PHP
    - Statistical View of Data in a Clustered Bar ...
    - Creating a Multi-File Upload Script in PHP
    - Executing Microsoft SQL Server Stored Proced...
    - Code 10x More Efficiently Using Data Access ...
    - A Few Tips for Speeding Up PHP Code
    - The Modular Web Page
    - Quick E-Commerce with PHP and PayPal
    - Regression Testing With JMeter
    - Building an Iterator with PHP
    - PHP Frontend to ImageMagick
    - Using PEAR's mimeDecode Module
    - Incoming Mail and PHP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT