Jump to content

[SOLVED] Multiple Upload Script Help


iceblox

Recommended Posts

First off my apologies for cheating.. ;o)

 

But i need a quick turn around on a mulitple upload script. I found on google a pretty decent front end but I need to make my own back end. Which i can do if it was one file being uploaded..

 

 

<? 
if(isset( $Submit )) 
{ 

if ($_FILES['imagefile']['type'] == "image/gif"){ 
copy ($_FILES['imagefile']['tmp_name'], "files/".$_FILES['imagefile']['name'])  
   or die ("Could not copy"); 

       echo "";  
       echo "Name: ".$_FILES['imagefile']['name']."";  
       echo "Size: ".$_FILES['imagefile']['size']."";  
       echo "Type: ".$_FILES['imagefile']['type']."";  
       echo "Copy Done....";  
       } 
else { 
           echo "<br><br>"; 
           echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")<br>"; 
       } 
} 
>?

 

How would i make this work with any number of uploads? (max 9)

 

Here is the front end script link....

 

http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/

 

 

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/53881-solved-multiple-upload-script-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.