Skip to content Skip to sidebar Skip to footer

'inmemoryuploadedfile' Object Has No Attribute 'get'

I'm having trouble getting images to upload to an S3 bucket from Django The error I'm getting is: 'InMemoryUploadedFile' object has no attribute 'get' I've looked at similar que

Solution 1:

You shouldn't pass a specific file from the request to the form, you should pass the whole FILES dictionary just as you pass the whole POST.

form = ImageForm(request.POST, request.FILES)

Post a Comment for "'inmemoryuploadedfile' Object Has No Attribute 'get'"