requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Image upload function #65

Open lafar6502 opened 6 years ago

lafar6502 commented 6 years ago

Actual behavior

Too often the function to upload and insert image fails with no clear reason. Example: i upload image, the image windows shows a notification that file has been uploaded OK, but it doesn't show on the list of pictures. And there is a message that there was an error getting image list.

image

Next time i open the window, the picture is still not there, but i cant upload it - because the system complains image exists already !

image

Broken, no easy workaround. This sometimes fixes after restarting wiki And there is no information about any errors in the log files - bad.

Expected behavior

Make it simple and working. Just show the files and do simple standard html upload instead of this fancy picture window, if this would just work.

Steps to reproduce the behavior

MMI commented 6 years ago

Heh, I get "that file is too big"

kevinmui commented 6 years ago

I experience similar messages as well, v1.0.68. Insert new image (upload), OK, save changes, go back in, attempt to upload another image, and system states that the PREVIOUS image already exists --- same as OP.

MMI commented 6 years ago

My file too big problem was a result of my (virtual) machine not having enough RAM. Increasing memory allows the image upload function to work in the same way as the OP reports.

You can only upload one image per page edit session/instance/whatever.

sky4055 commented 6 years ago

same issue here!

PixiBixi commented 6 years ago

As everyone i guess ;)

neuthral commented 6 years ago

i got uploads working by making folders and default permissions for data/cache data/temp-upload and data/thumbs, watch for the pm2 logs for info

bsurnida commented 6 years ago

Same issue here. Using the docker image from https://hub.docker.com/r/requarks/wiki/

alvgustavoe commented 5 years ago

Is there any workaround to get this work? I can´t use wikijs just for this issue.

CatzillaOrz commented 5 years ago

I think I fixed this bug, I'll pull request if anybody need it