Upload attachment function does not work in editing mode
Problem
- Unable to upload attachments from the Editor either via:
- Edit page > Insert > Attachment
or - Edit page > Insert > Image
- You'll get the following error message:
Could not upload the file to Confluence. The server may be unavailable.
Note that sometimes the attachment will upload despite the warning.
- Edit page > Insert > Attachment
- However, you can successfully upload attachments from:
- Tools > Attachments > Attach File
- Tools > Attachments > Attach File
The following appears in the atlassian-confluence.log
:
012-09-18 19:06:10,170 ERROR [http-8090-4] [atlassian.confluence.servlet.ConfluenceServletDispatcher] serviceAction There is no Action mapped for namespace /confluence/pages and action name attachfile
-- url: /confluence/pages/attachfile.action | userName: florianmayer | referer: http://atlassian.net:8090/pages/createpage.action?spaceKey=ds&fromPageId=121962498
2012-09-18 19:07:19,242 ERROR [http-8090-4] [atlassian.confluence.servlet.ConfluenceServletDispatcher] serviceAction There is no Action mapped for namespace /confluence/pages and action name attachfile
-- url: /confluence/pages/attachfile.action | userName: florianmayer | referer: http://atlassian.net:8090/pages/createpage.action?spaceKey=ds&fromPageId=121962498
2012-09-18 19:09:18,465 ERROR [http-8090-4] [atlassian.confluence.servlet.ConfluenceServletDispatcher] serviceAction There is no Action mapped for namespace /confluence/pages and action name attachfile
-- url: /confluence/pages/attachfile.action | userName: florianmayer | referer: http://atlassian.net:8090/pages/createpage.action?spaceKey=ds&fromPageId=121962498
Cause
-The configured base URL does not match the URL you use to access Confluence via the browser. For example, you access Confluence via http://atlassian.net:8090 while the configured base URL from Confluence Admin > General Configuration
is http://atlassian.net/confluence
-There is also a known bug. Follow its progress here: - CONF-28564Getting issue details... STATUS
-This has also been reported in legacy versions of Confluence (e.g. Confluence 5.6.X) caused by the Brikit Theme Press.
Workaround
- Enable Safe-Mode and see if the upload functionality works after disabling third party add-ons.
Resolution
-Ensure that the configured base URL must match the URL you use to access Confluence via the browser. Update the base URL from Confluence Admin > General Configuration.