Jump to content

Uploading large files


jtrost

Recommended Posts

Hi.  I've created a simple file uploading script, which works perfectly.  Here's the script:

 

    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 />";

        move_uploaded_file($_FILES["file"]["tmp_name"],"images/comprofiler/".$id.".swf");

        echo "Stored in: images/comprofiler/".$id.".swf";

    }

 

However the files are about 40mb in size, which takes a LONG time to upload.  Is there a way I can put these files in a quere and upload them so the user doesn't have to sit and wait for it to upload?

Link to comment
https://forums.phpfreaks.com/topic/54036-uploading-large-files/
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.