Wiki: Can not upload image files

Created on 28 Jul 2020  路  8Comments  路  Source: Requarks/wiki

Problem
Can not upload image files.

Steps:

  1. Open a page in the editor (markdown)
  2. Click "Upload files" (it's a backward translation, may be something else)
  3. System displays the red banner "An unexpected error occured"
  4. Developer Tools/Network logs a POST /graphql request with 200 Ok status
  5. In the "Upload files" section press "Browse", select a file. The selected file displayed in the uploadable files field
  6. Press "Upload"
  7. System displays a green banner "Upload complete" in the uploadable files field followed by "An unexpected error occured" red banner
  8. Developer tools logs 2 more POST requests with 200 Ok status

Host Info (please complete the following information):
OS: Ubuntu (bionic) 18.04 x64
Wiki.js version: 2.4.107
Database engine: 5.7.30-0ubuntu0.16.04.1

1
2
3

help

All 8 comments

also happen me, any solution?

It happens to me too.
The error come from a POST to graphql.
Here is the error:
https://pastebin.com/zSKD7FzL

Using mysql 5.7.25-1 - (Debian)

oh I just realized, you guys are using MySQL 5.7. This feature is not supported if you are using MySQL 5.7. You need to upgrade to MySQL 8.x at least

Read more about it here

@Smankusors Not would applied for me. My db is postgress version
12.1

oh I just realized, you guys are using MySQL 5.7. This feature is not supported if you are using MySQL 5.7. You need to upgrade to MySQL 8.x at least

Read more about it here

Thanks, I'll be moving the wiki to PostgreSql soon.
However, with MySQL 5.7, the upload does not even work in the root folder.

@Smankusors Not would applied for me. My db is postgress version
12.1

How are you accessing your Wiki? Are you running the instance behind some reverse proxy?

oh I just realized, you guys are using MySQL 5.7. This feature is not supported if you are using MySQL 5.7. You need to upgrade to MySQL 8.x at least

Read more about it here

Upgrading to MySQL 8 solved the issue for me. I'm feeling stupid

Now I wonder how to delete all that junk that was uploaded

@Smankusors Not would applied for me. My db is postgress version
12.1

How are you accessing your Wiki? Are you running the instance behind some reverse proxy?

Hi, deployed with k8s and Ingress Controller.

Was this page helpful?
0 / 5 - 0 ratings