500 Internal Server Error (trying to upload file)
<p>I have small app in flask was is hosted on pythonanywhere. When I try uploading a file I get 500 error. I copied the code exactly except for changing the UPLOAD_FOLDER path and ALLOWED_EXTENSIONS. Local(on my computer) all working good but on server not.</p>

<p><a href="http://pastebin.com/hWdh4VvB" rel="nofollow">Log error</a></p>

<p><a href="http://pastebin.com/riq5hKMx" rel="nofollow">My Code</a></p>

<p>Looks like the problem is in <code>UPLOAD_FOLDER</code> path value.</p>

<p>Your python script complains it can't find the directory you set up for uploads. And since you set up it as:</p>

<pre><code>UPLOAD_FOLDER = 'upload/'
</code></pre>

<p>And in docs this variable has absolute path to the directory, I think, if you change <code>upload/</code> to </p>

<pre><code>UPLOAD_FOLDER = '/absolute/path/to/your/upload/directory/'
</code></pre>

<p>it would help.</p>

python flask pythonanywhere