Announcement

Collapse
No announcement yet.

Problems with uploading large files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with uploading large files

    Hello dear staff EspoCRM,

    I changed the following configurations (see below) and then I tried to upload a big size file (200MB) but without any chance. It is there any possibility to can upload big size files? If yes, what I have to change?

    max_execution_time = 720
    max_input_time = 720
    memory_limit = 512M
    post_max_size = 300M
    upload_max_filesize = 300M

    Thank you in advance for your help!
    Best regards
    Adrian

  • #2
    Hi, try with Firefox. I had luck that way.

    Comment


    • ciucaadrian11
      ciucaadrian11 commented
      Editing a comment
      Hello @shalmaxb
      I tried with Firefox. I waited two hours but nothing happened. The file was not uploaded.
      Thanks!

  • #3
    Check out this thread: https://forum.espocrm.com/forum/gene...ng-large-files

    Comment


    • #4
      Hi @ciucaadrian11

      200MB is big file. What you need to do is increase the `memory_limit` value in the php.ini to what you have now. try with increasing to 2048 and check. if same thing happens try to increase that and check. But i'm not recommending to upload high capacity of files to CRM, because it can be caused some other problems.
      Cheers!
      Nishan.

      Comment


      • ciucaadrian11
        ciucaadrian11 commented
        Editing a comment
        Hello Nishan,
        I have increased the 'memory_limit' to 2048. Same thing. I can not upload the file. I have increased again the 'memory_limit' to 3072' same thing. I have no idea what I can to do to can upload big files.
        Thank you for your support!

      • Nishan Perera
        Nishan Perera commented
        Editing a comment
        Hello Cluc,

        Please try to increase these things too and check. After changes please restart the service.

        max_execution_time = 720
        max_input_time = 720
        memory_limit = 512M

      • ciucaadrian11
        ciucaadrian11 commented
        Editing a comment
        Hello Nishan,

        I have increased these things as you said (max_execution_time = 720, max_input_time = 720, memory_limit = 512M) but same thing.

        Thank you!

    • #5
      Hi ciucaadrian, the error is quite straight forward and it got to do with memory.

      Maybe these questions might give you some idea:

      1) Have you restart your PHP? or Apache?
      2) Where are you uploading? Documents? Attachment Field? Email?
      3) Do you have enough memory?, that 3072 sound bit odd.
      4) Have you look at any Network monitor tools to see how fast/stable your upload is?
      5) Have you tried a lower file size and see how it behave?

      Comment


      • #6
        Hello Dear Community Member,

        I have restart the Apache.
        The file is upload in attachment field.
        I have changed the memory to 512, same thing.
        Speed network is 1Gbps
        I tried a file that have 80MB and work. If the file has over 100M, does not work.
        I use espocrm version 5.7.6. PHP version 4.8.5.

        Thank you for your support!
        Attached Files

        Comment


        • Nishan Perera
          Nishan Perera commented
          Editing a comment
          Seems its out of memory could you please check your localhost resources while uploading the data file.

        • ciucaadrian11
          ciucaadrian11 commented
          Editing a comment
          Hello Nishan,

          You are referring to this system configuration? (see below):
          Processor: INTEL(R) PREMIUM(R) CPU G645 @2.9GHz
          Installed memory: 4GB (3,48 usable)
          System type: 32 bit

          Sorry for the question but I do not have many knowledge about software.

          Thank you!
          Best regards,

        • Nishan Perera
          Nishan Perera commented
          Editing a comment
          Hello ciucaadrian,

          is it windows PC ? could you please check the PC resource while you uploading the file. you can check that from task manager or resource manager in windows.

      • #7
        Hi, could you inform, where you are hosting? Local or Hosting? I read, that there could be a Problem with Plesk in its configurations, that interfers with upload.

        Comment


        • ciucaadrian11
          ciucaadrian11 commented
          Editing a comment
          Hello,
          @shalmaxb:I hosting it local.

          Thank you!

      • #8
        Are you using one of those Stack software? (WAPPS, AMPPS)

        Maybe posting your PHP configuration table might give some clues.

        Comment


        • #9
          Originally posted by espcrm View Post
          Are you using one of those Stack software? (WAPPS, AMPPS)

          Maybe posting your PHP configuration table might give some clues.
          Hello Dear Staff EspoCRM,

          This print screen is helpful?

          Thank you!

          Comment


          • #10
            Originally posted by ciucaadrian11 View Post
            Hello Dear Community Member,

            I have restart the Apache.
            The file is upload in attachment field.
            I have changed the memory to 512, same thing.
            Speed network is 1Gbps
            I tried a file that have 80MB and work. If the file has over 100M, does not work.
            I use espocrm version 5.7.6. PHP version 4.8.5.

            Thank you for your support!
            Hello Nishan,

            Are these catches helpful?

            Thank you!
            Best regards,

            Comment


            • #11
              Originally posted by ciucaadrian11 View Post

              Hello Dear Staff EspoCRM,

              This print screen is helpful?

              Thank you!
              That kinda good, but lacking information of full configuration; here is a guide to getting your full PHP Info if you Server/stack don't have it available by default.
              In this tutorial, we'll show you how to create a phpinfo page so you can view your php settings and analyze your website needs.


              PS. Also I'm not a staff member. Just an user like you.

              Comment


              • #12
                Originally posted by espcrm View Post

                That kinda good, but lacking information of full configuration; here is a guide to getting your full PHP Info if you Server/stack don't have it available by default.
                In this tutorial, we'll show you how to create a phpinfo page so you can view your php settings and analyze your website needs.


                PS. Also I'm not a staff member. Just an user like you.
                Hello Mister,

                I have attached the full PHP Infos.

                Thank you!
                Best regards,
                Attached Files

                Comment


                • #13
                  Hi, still need more information:

                  1. what filetype (file-extension)
                  2. name of the file: any spaces, not allowed chars?
                  3. Any error message?
                  4. Espo Log-file (in root/data)

                  Comment


                  • ciucaadrian11
                    ciucaadrian11 commented
                    Editing a comment
                    I found this error in:\xampp\htdocs\espocrm\data\logs:

                    [2020-09-07 05:41:44] Espo.WARNING: E_WARNING: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? {"code":2,"message":""continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?","file":"D:\\xampp\\htdocs\\espocrm\\vendor \\t ecnickcom\\tcpdf\\tcpdf.php","line":17786,"context ":{"file":"D:\\xampp\\htdocs\\espocrm\\vendor\ \com poser/../../application\\Espo\\Core\\Pdf\\Tcpdf.php"}} []
                    [2020-09-07 07:10:35] Espo.ERROR: Formula failed: Class \Espo\Core\Formula\Functions\StatusType was not found. [] []

                • #14
                  Hi shalmaxb,

                  I don't think file type and filename is an issue for him. Since he can upload file below <100mb but get error when it above that.

                  ---

                  I had a look at the PHP info file. Have you check this log to see if there any clues?

                  xampp\php\logs\php_error_log

                  Also look at this folder: \xampp\tmp

                  This is where your upload get store temporary.


                  Setting-wise from your PHP file it seem all good to go. My only hunch left possibly be that you haven't restarted the PHP/Apache/Server yet. You could also try to use other stack instead of XAMPP and see if that work, for example: AMPPS or WAMP
                  Last edited by esforim; 09-08-2020, 07:37 AM.

                  Comment


                  • shalmaxb
                    shalmaxb commented
                    Editing a comment
                    that`s right, but we don`t know, if the smaller file is formatted correctly (and equally to the large one) and if it is the same filetype as the larger one.
                    Just to exclude any issue of that kind.
                    But the log files should give some clues.

                    And for another stack, let me give you my 10cents: try laragon, I discovered this some weeks ago and it is so much more comfortable in every aspect.

                  • ciucaadrian11
                    ciucaadrian11 commented
                    Editing a comment
                    I found this error in:\xampp\htdocs\espocrm\data\logs:

                    [2020-09-07 05:41:44] Espo.WARNING: E_WARNING: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? {"code":2,"message":""continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?","file":"D:\\xampp\\htdocs\\espocrm\\vendor\\t ecnickcom\\tcpdf\\tcpdf.php","line":17786,"context ":{"file":"D:\\xampp\\htdocs\\espocrm\\vendor\\com poser/../../application\\Espo\\Core\\Pdf\\Tcpdf.php"}} []
                    [2020-09-07 07:10:35] Espo.ERROR: Formula failed: Class \Espo\Core\Formula\Functions\StatusType was not found. [] []

                  • esforim
                    esforim commented
                    Editing a comment
                    Cool shalmaxb, their HTTPS expired though (right on the day I open it). Other use might think "virus" but I know better than they must have forgotten to renew or don't want to pay for renewal.

                    Anyway I added it to my bookmark for future use. Are you using it as your development server?

                    ciucaadrian11 Best to post that log as a post, else it get lost in the comments.

                    From that error it say TCPDF which shouldn't be related to you, Formula? I dont think that will cause upload issue. But I'm out of idea at this point.
                Working...
                X