Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find valid magic files. #23

Open
jf-cucalon opened this issue Aug 26, 2020 · 8 comments
Open

Cannot find valid magic files. #23

jf-cucalon opened this issue Aug 26, 2020 · 8 comments

Comments

@jf-cucalon
Copy link

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

@klis87
Copy link
Owner

klis87 commented Aug 26, 2020

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

@jf-cucalon
Copy link
Author

yeah i did

@jf-cucalon
Copy link
Author

jf-cucalon commented Aug 26, 2020

works fine for images but not for videos @klis87

@klis87
Copy link
Owner

klis87 commented Aug 27, 2020

@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
Copy link
Owner

klis87 commented Aug 27, 2020

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

@jf-cucalon
Copy link
Author

I will try thanks @klis87

@bufke
Copy link

bufke commented Sep 1, 2020

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

@klis87
Copy link
Owner

klis87 commented Sep 2, 2020

@bufke thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants