wiki-v1 icon indicating copy to clipboard operation
wiki-v1 copied to clipboard

Image upload function

Open lafar6502 opened this issue 7 years ago • 9 comments

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

lafar6502 avatar Feb 03 '18 11:02 lafar6502

Heh, I get "that file is too big"

MMI avatar Feb 04 '18 18:02 MMI

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.

kevinmui avatar Feb 07 '18 14:02 kevinmui

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.

MMI avatar Feb 11 '18 19:02 MMI

same issue here!

sky4055 avatar Feb 22 '18 21:02 sky4055

As everyone i guess ;)

PixiBixi avatar Feb 24 '18 16:02 PixiBixi

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

neuthral avatar Mar 29 '18 05:03 neuthral

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

bsurnida avatar Apr 06 '18 18:04 bsurnida

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

alvgustavoe avatar Nov 27 '18 21:11 alvgustavoe

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

CatzillaOrz avatar Jul 09 '19 03:07 CatzillaOrz