I have a form that looks like this:
<form method="POST" action="/posts">
{{ csrf_field }}
<input type="text" name="username">
<input type="file" name="image">
<input type="submit" value="Submit">
</form>
But when I submit this form and try to upload I am only getting the name of the image:
def posts(self, request: Request, upload: Upload):
upload.store(request().input('image'))
I get hit with an exception:
AttributeError > 'str' object has no attribute 'filename'