PHP Large file upload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ykhamitkar
    New Member
    • May 2007
    • 64

    PHP Large file upload

    Hi,

    I am working on file upload script.
    The problem is the code does not allow large file upload.
    I have changed following values in php.ini.
    • file_uploads
    • upload_max_file size
    • max_input_time
    • memory_limit
    • max_execution_t ime
    • post_max_size

    Site works for small size files

    Do I need to change any other setting.

    Thanks,
    Yogesh
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    Did you restart your webserver? Can you see updated values in phpinof()?

    Comment

    • ykhamitkar
      New Member
      • May 2007
      • 64

      #3
      Originally posted by mwasif
      Did you restart your webserver? Can you see updated values in phpinof()?

      Yes I checked the phpinfo() and it shows all updated values.

      Comment

      • mwasif
        Recognized Expert Contributor
        • Jul 2006
        • 802

        #4
        What is the file size? What are the new values you set?
        As I know, it should work if you change these values.

        Comment

        • ykhamitkar
          New Member
          • May 2007
          • 64

          #5
          Originally posted by mwasif
          What is the file size? What are the new values you set?
          As I know, it should work if you change these values.

          As I remember when I worked with 20 MB files it worked.
          But my client says when he tried with files of 50 MB it didnt work.

          Thane values set by me are
          file_uploads = On
          upload_max_file size = 900M
          max_input_time = 100000000000000
          memory_limit = 900M
          max_execution_t ime = 10000000000
          post_max_size = 900M


          Please help
          thanks,
          Yogesh

          Comment

          • mwasif
            Recognized Expert Contributor
            • Jul 2006
            • 802

            #6
            But my client says when he tried with files of 50 MB it didnt work.
            This may be due to connection problem.

            Did you try yourself with 50MB file?

            Comment

            • ykhamitkar
              New Member
              • May 2007
              • 64

              #7
              Originally posted by mwasif
              This may be due to connection problem.

              Did you try yourself with 50MB file?
              You may be right. May be if the net connection is not working properly this happened.

              Thanks,
              Yogesh

              Comment

              • ykhamitkar
                New Member
                • May 2007
                • 64

                #8
                Originally posted by ykhamitkar
                You may be right. May be if the net connection is not working properly this happened.

                Thanks,
                Yogesh

                I have one more question about paypal integration

                Comment

                • mwasif
                  Recognized Expert Contributor
                  • Jul 2006
                  • 802

                  #9
                  I worked with Paypal a long time ago. It will be better to create a new thread for Paypal question.

                  Comment

                  • ykhamitkar
                    New Member
                    • May 2007
                    • 64

                    #10
                    Originally posted by mwasif
                    I worked with Paypal a long time ago. It will be better to create a new thread for Paypal question.

                    Thanks for your help

                    Comment

                    • pbmods
                      Recognized Expert Expert
                      • Apr 2007
                      • 5821

                      #11
                      Heya, Yogesh.

                      Did you remember to include a MAX_FILE_SIZE hidden input in your form?

                      Check the 'error' field in your $_FILES array. Here's an article that explains what they mean.

                      Comment

                      Working...