Nekos-moe / api

https://docs.nekos.moe/
MIT License
37 stars 7 forks source link

Some problem with uploading image #12

Closed oniyakun closed 4 years ago

oniyakun commented 4 years ago

Hello! I'm studying ur project and try to build the site, but somehow when I uploading the image it always shows loading and API returns empty, you have any ideas about this? Huge thanks!

oniyakun commented 4 years ago

I figured out the problem is image and modified the code to made it work, but new problem is, the uploaded image cannot load and returned 404(/image/XXXXX & /thumbnail/XXXXX), Im still trying to fix it so if u know something plz let me know, thx!

brussell98 commented 4 years ago

Read the error: "No such file or directory". You need to create them.

oniyakun commented 4 years ago

Somehow the system cannot recognition the path about /../../../, I delete them at ImagesPOST.js in line 110 &119 and it looks work fine. But now it can't load the image at the site I still dont know why

oniyakun commented 4 years ago

I dont seen any router about /image/ so I'm thinking maybe something wrong with my configuration or something

oniyakun commented 4 years ago

Holy... The image and thumbnail folder was outside of the api folder, I didnt realize that before... All in all, Thanks!