Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.