Uploading large files - error "stat failed"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marc

    Uploading large files - error "stat failed"

    Hello,

    I have a page where i can upload binary file (using the HTML input
    type=file approach). This works fine for relatively small files
    (<6MB)) but when files get bigger (13MB) there is a problem.
    The code of the php file is based upon the article in
    http://www.onlamp.com/pub/a/php/2000...hp_mysql.html: uploading
    large binary files using more than one table and more trhan 1 row per
    file.

    When I want to upload something of -say- 13MB the problems are:

    1 takes ages to upload (slow connection? it's on my LAN),

    2 after a while I get a error msg:
    "Warning: stat failed for none (errno=2 - No such file or directory)
    in /Users/marc/Sites/wwwweb/FTP/FileTransfer.ph p on line 91"

    Lines 90 and 91 are below:
    90 clearstatcache( );
    91 $time = filemtime($SrcP athFile);

    (does this mean the tmp file is not there???)

    I changed 4 variables in php.ini to accomodate the bigger file size:

    max_execution_t ime=120
    post_max_size=6 5M
    upload_max_file size=65M
    memory_limit =65M

    I changed the rights on the tmp file upload directory so that everyone
    can write to it just to be sure...

    Still I get the error.

    Why am I not able to upload those big files?

    Why does it take so long for the file to upload to the server? It
    happens all on my LAN (no proxies enabled) so it should be faster....
    even dloading a file from the internet is faster than this.

    Can anyone point out what's wrong here?

    Thanks,

    Marc
Working...