open-eats / OpenEats

:pizza: Self Hosted Recipe Management App :hamburger:
https://open-eats.github.io/
MIT License
670 stars 102 forks source link

Unable to upload images #75

Closed agenttwelve closed 5 years ago

agenttwelve commented 5 years ago

Hello, I have just got the site up and running, but I am having an issue where I cannot upload an image. Upon doing so, I get a "Photo failed to save! Please try again." error.

I checked the web browser console and got this result "VM301:1 PATCH http://domain.com/api/v1/recipe/recipes/quinoa-skillet-2/ 413 (Request Entity Too Large)".

From the API logs, "/usr/local/lib/python3.6/site-packages/django/db/models/fields/init.py:1423: RuntimeWarning: DateTimeField Recipe.pub_date received a naive datetime (2018-12-05 00:00:00) while time zone support is active."

agenttwelve commented 5 years ago

Seems to be due to image size. I have closed this issue.

RyanNoelk commented 5 years ago

The issue here is that the image is just too large. You can use a random web tool to reduce the size and still maintain the quality (https://www.reduceimages.com/)