File "/usr/local/lib/python3.9/dist-packages/django/db/models/fields/files.py", line 302, in pre_save
file.save(file.name, file.file, save=False)
File "/usr/local/lib/python3.9/dist-packages/django/db/models/fields/files.py", line 89, in save
self.name = self.storage.save(name, content, max_length=self.field.max_length)
File "/usr/local/lib/python3.9/dist-packages/django/core/files/storage.py", line 54, in save
return self._save(name, content)
File "/usr/local/lib/python3.9/dist-packages/storages/backends/s3boto3.py", line 459, in _save
obj.upload_fileobj(content, ExtraArgs=params)
File "/usr/local/lib/python3.9/dist-packages/boto3/s3/inject.py", line 620, in object_upload_fileobj
return self.meta.client.upload_fileobj(
File "/usr/local/lib/python3.9/dist-packages/boto3/s3/inject.py", line 540, in upload_fileobj
return future.result()
File "/usr/local/lib/python3.9/dist-packages/s3transfer/futures.py", line 106, in result
return self._coordinator.result()
File "/usr/local/lib/python3.9/dist-packages/s3transfer/futures.py", line 265, in result
raise self._exception
File "/usr/local/lib/python3.9/dist-packages/s3transfer/tasks.py", line 255, in _main
self._submit(transfer_future=transfer_future, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/s3transfer/upload.py", line 545, in _submit
upload_input_manager = self._get_upload_input_manager_cls(
File "/usr/local/lib/python3.9/dist-packages/s3transfer/upload.py", line 521, in _get_upload_input_manager_cls
raise RuntimeError(
RuntimeError: Input hhgsq.png of type: <class 'django.core.files.uploadedfile.InMemoryUploadedFile'> is not supported.