The upgrade from JomSocial 4.7.7 to 4.8.0 changes the uploader (plupload). On my site, these changes break uploads that are big enough to require chunking, when uploaded via the post box. The debugger shows the upload URL missing the name parameter and other chunking parameters (which, as a result, are also missing from the REQUEST variable in our supplied handler for chunk processing). And at the end of the upload, the server returns 500. The source file is vendors-postbox.app.js. Our chunk size is 200MB.

My site needs an urgent fix for this because it is preventing several upgrades.

    radiosteve
    Hi
    Can you edit fields in first post and submit admin URL of site as it redirect back to Home page.
    Also share example by plupload do you refer to uploading of local video as example?

      Ninja please try the standard administrator URL again. (I have now disabled the security URL...sorry about that). Thank you. Yes, I refer to uploading a local video. Screenshot attached...

        Thank you. Unfortunately the behavior seems to be the same after updating to the supplied version. The video upload fails, and in the debugger I still do not see the expected chunk-related URL parameters that should be supplied by vendors-postbox.app.js when it calls the chunk handler.

        To be clear, in components/com_community/controllers/videos.php at line 521, the $_REQUEST variable does not contain the expected keys, such as "chunk" etc. (because they are missing from the URL).

          radiosteve
          Hi,
          I used your backup at my end, and no issue with large file upload ( tested with 1G file).

          Also, on your server, there are some php configs need increase if you want to upload files larger than 200MB

          upload_max_filesize = 200M
          post_max_size = 200M

          Kindly check.

          16 days later

          Hello, the above fix worked on our test site, thank you for that. However, uploading of larger files is still broken when running this fix on our production site, which is behind CloudFlare. It seems to have an entirely different cause now:

          When uploading a large file via the postbox in the activity stream, no indication of progress is ever shown, no data is transmitted, and the page hangs indefinitely. On Firefox, the upload fails immediately with "Server responded with 0 code."

          This problem occurs when uploading large files via the activity stream postbox. Uploading small files, or any-size files via the upload window on the "My Videos" page, is working.

            radiosteve
            Hi
            In this case as the issue only live, can you disable the cloudflare cache and check the uploads.
            It might be the cache the server the older page.

            radiosteve

            Hi,
            You can check upload limit of cloudflare at Network > Maximum Upload Size

            @Ninja I tried flushing the cache and disabling and re-enabling CloudFlare, with the same results.

            @manhta I verified that this problem exists when the CloudFlare maximum is set to 200 MB as seen in the following image:
            (Tested with chunk size of 150 MB.)

            Since it works with the other upload form via the profile "My Videos" page but not via the activity stream postbox, doesn't this already exclude CloudFlare as the problem?

              radiosteve
              Kindly check your server config. Make sure these larger than 200M

              upload_max_filesize = 200M
              post_max_size = 200M

                radiosteve
                Hmm,
                I think you should clone a version to dev site to test again.
                Btw, could you share live site info?

                1. I re-cloned to the test site and the problem still did not appear there without CloudFlare.
                2. I set up CloudFlare on the test site, and subsequently the problem appeared. CloudFlare is configured as follows:

                I have updated the access fields and would appreciate further assistance.

                  radiosteve verified that this problem exists when the CloudFlare maxi

                  You have to increase the max upload size in your Cloudlflare setting as it restricted with 200MB max.
                  Also increase max execution time value to 300.

                  If the issue remain same can you disable cloudlfare cache and check as this limit of 200MB could not be override via Jomsocial for cloudflare cache.

                  You need to Login to view replies.