Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-28564

Uploading attachments through the "insert link" macro fails if it uploads too slowly

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      With the insert link macro in Confluence you can create a link on a page to an attachment present on the instance. You can also upload attachments through this macro, however when doing this with larger files, you get the message "could not upload the file to confluence, the server may be unavailable". This goes for OnDemand, I have not been able to reproduce it on download. I think it simply times out causing larger file sizes to produce this message. When testing this surfaced with files between 25 and 30 MB, I do not think this is extremely relevant, since it can also be related to upload speed.

      Files can get uploaded to the instance as normally through the attachment macro without limitation in size (other than the instance set max)

      Workaround

      • Use the drag-and-drop feature to upload the image. This is uploaded using a different mechanism and doesn't seem to be subject to the same timeout.
      • Go to "Tools" -> "Attachments" and upload the image there. It's also not subject to the same timeout.

          Form Name

            [CONFSERVER-28564] Uploading attachments through the "insert link" macro fails if it uploads too slowly

            GaryM added a comment -

            We've experienced this problem too. After checking URL's match as described.
            The problem can be reproduced by using Insert/Link/Attachments and browsing to a filename where the filename includes one or more single quotes (Example: filename = a'test.xlsx )
            The drag-drop method of adding attachments (Go to "Tools" -> "Attachments") works fine

            Confluence 5.6.5

            GaryM added a comment - We've experienced this problem too. After checking URL's match as described. The problem can be reproduced by using Insert/Link/Attachments and browsing to a filename where the filename includes one or more single quotes (Example: filename = a'test.xlsx ) The drag-drop method of adding attachments (Go to "Tools" -> "Attachments") works fine Confluence 5.6.5

            this is also another reason that could make it fail on IIS: http://ajaxuploader.com/large-file-upload-iis-asp-net.htm

            Ovidiu Groza added a comment - this is also another reason that could make it fail on IIS: http://ajaxuploader.com/large-file-upload-iis-asp-net.htm

            Nishchay Shah added a comment - - edited

            We are facing this problem as well. Trying to upload a 27MB file.
            I tried using drag and drop and it uploads the file in 8seconds but returns the error:
            "Invalid response received from the server."

            Nishchay Shah added a comment - - edited We are facing this problem as well. Trying to upload a 27MB file. I tried using drag and drop and it uploads the file in 8seconds but returns the error: "Invalid response received from the server."

            Blake Ong added a comment -

            I encountered the same problem. I am using nginx as my proxy server and that's actually where my problem lies. I needed to add client_max_body_size 20M; onto my nginx configuration to support large files.

            Using self-hosted confluence 5.5.

            Blake Ong added a comment - I encountered the same problem. I am using nginx as my proxy server and that's actually where my problem lies. I needed to add client_max_body_size 20M; onto my nginx configuration to support large files. Using self-hosted confluence 5.5.

            Hi tdang, it looks like this is still an issue for OnDemand, do we have any idea when this will get deployed there?

            David Nicholson (Inactive) added a comment - Hi tdang , it looks like this is still an issue for OnDemand, do we have any idea when this will get deployed there?

            j added a comment -

            This fix does not work for me.

            j added a comment - This fix does not work for me.

            Ops Team added a comment -

            I experience this failure consistently based on the amount of time it takes, not the size of my files. It appears to be some sort of timeout.

            Ops Team added a comment - I experience this failure consistently based on the amount of time it takes, not the size of my files. It appears to be some sort of timeout.

            Frankie added a comment -

            Hi, how to solve this issue in my installation ?

            Frankie added a comment - Hi, how to solve this issue in my installation ?

            We have encountered this with small files of < 10MB

            James Dellow added a comment - We have encountered this with small files of < 10MB

            We have the same problem here on our self-hosted instance. We can't insert files in edit mode via insert button and our base url is correct. Drag and drop workaround helps, but we are looking forward for fix. We are using SSL as well, but it's nginx-based solution. However, when i try to directly connect to confluence (via http and 8090 port) - i get the same error. The files, which can't be uploaded , are around 10 MB, but our upload-limit is set to 100 mb.

            Aleksey Samusenko added a comment - We have the same problem here on our self-hosted instance. We can't insert files in edit mode via insert button and our base url is correct. Drag and drop workaround helps, but we are looking forward for fix. We are using SSL as well, but it's nginx-based solution. However, when i try to directly connect to confluence (via http and 8090 port) - i get the same error. The files, which can't be uploaded , are around 10 MB, but our upload-limit is set to 100 mb.

              tdang Tue Tri Dang (Inactive)
              mnassette MJ (Inactive)
              Affected customers:
              19 This affects my team
              Watchers:
              41 Start watching this issue

                Created:
                Updated:
                Resolved: