Results 1 to 6 of 6

Thread: PHP file upload

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2004
    Posts
    35

    PHP file upload

    Hi.
    I'm having a problem with file upload.

    I've set the post_max_size=8M and upload_max_filesize=20M but can't upload files that are larger than 1Mb. =)
    Isn't that funny?

    I have no more ideas what to configure.

    I'm using IIS 5.1 and PHP 4.3

    Thanx in advance!

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    Have you checked that IIS is not imposing a limit on the file upload size?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3
    Lively Member morrowasted's Avatar
    Join Date
    Aug 2003
    Location
    Houston, TX
    Posts
    118
    This happened to me too, but I was on apache and it wouldn't upload more than 6 megs, even with an ini_set right before it.

    -morrowasted

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2004
    Posts
    35
    I know that IIS has no limits for this feature and the only limiter is PHP. That's why i don't understand.

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    Do you get any error messages, or does it just truncate the upload at 1mb? It would also be worth checking there is not some kind of timeout for uploads on the server.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6

    Thread Starter
    Member
    Join Date
    Jun 2004
    Posts
    35
    Well it gives an alert box that "The document contains no data"
    But i realised some interesting thing:

    At first - server is behind a proxy!

    When i use other computer (working with the server through a proxy), upload works!!!
    But when i test uplod directly on the server (uploading to itself) it can't upload files larger than 1Mb.

    From one hand my problem doesn't exist anymore as i can use upload from other computers and i don't need it when testing it locally, but from the other it's still mystique.
    =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width