Open JamieB92 opened 12 months ago
Bug Fix:
The issue was I hadn't setup Cloudinary to handle Videos in the model as per this documentation: https://pypi.org/project/django-cloudinary-storage/#usage-with-video-files
Steps to fix :
upload_clip = models.FileField( upload_to='videos/', blank=True, storage=VideoMediaCloudinaryStorage(), validators=[validate_video])
upload_image = models.ImageField(upload_to='images/', blank=True)
Outcome: I am now able to upload a Video and a Image vie the following steps in the API:
Both display the Video or Image uploaded via the API
Problem
When uploading a video file to Cloudinary, I get the following error when adding a clip to a post through the API:
Model is set to handle an upload to a file using FileField. Cloudinary does accept Video uploads to it as well.
Expected outcome