django-cloudinary-storage icon indicating copy to clipboard operation
django-cloudinary-storage copied to clipboard

Cannot find valid magic files.

Open jf-cucalon opened this issue 5 years ago • 8 comments

When uploading videos I get the cannot find valid magic files error if i use Filefield and if I use imagefield i get upload a valid image error

jf-cucalon avatar Aug 26 '20 20:08 jf-cucalon

Did you install python-magic? See https://github.com/klis87/django-cloudinary-storage#installation

klis87 avatar Aug 26 '20 20:08 klis87

yeah i did

jf-cucalon avatar Aug 26 '20 22:08 jf-cucalon

works fine for images but not for videos @klis87

jf-cucalon avatar Aug 26 '20 22:08 jf-cucalon

@jf-cucalon it could be probably due either a different package version, or I don't know, maybe different file type? Sadly I cannot debug it myself, if you have time and will, I will appreciate PR fixing this, unfortunately I cannot afford to do this myself at the moment.

klis87 avatar Aug 27 '20 13:08 klis87

Btw, we have test for that, and the video which passes the test is here - https://github.com/klis87/django-cloudinary-storage/blob/master/tests/dummy-files/dummy-video.mp4 , so I know this worked before, but packages versions arent pinned, one person is going to create a PR which will pin all packages with Poetry, but we need to wait for that.

So please try with the file I gave you, then we will know this is the problem wich package version or with your video

klis87 avatar Aug 27 '20 13:08 klis87

I will try thanks @klis87

jf-cucalon avatar Aug 27 '20 18:08 jf-cucalon

Opened issue #24 for any version pinning discussion. Hopefully I'll find some time for this.

bufke avatar Sep 01 '20 22:09 bufke

@bufke thx!

klis87 avatar Sep 02 '20 07:09 klis87