File uploading with PHP on server

Discussion in 'PHP' started by sonirajesh, Jul 4, 2007.

  1. #1
    i am having trouble with uploading, when i upload big size file like >2M
    it hang the browser and show blank screen and file does not get upload.

    upload_max_filesize is set 8M

    But when same thing on local network works file, seems problem in more setting.

    please help

    Rajesh Soni
     
    sonirajesh, Jul 4, 2007 IP
  2. Mashahood

    Mashahood Banned

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what is your post_max_size= ??

    Increase this to 10 to 12 MB
     
    Mashahood, Jul 4, 2007 IP
  3. sonirajesh

    sonirajesh Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry, it didn't work

    Rajesh
     
    sonirajesh, Jul 5, 2007 IP
  4. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Maybe your script reaches max execution time before it uploads your file?

    Try: void set_time_limit ( int $seconds ); and set $seconds = 600;

    10 minutes should be enough time to upload 2 Mb file.
     
    Greg Carnegie, Jul 5, 2007 IP