-
Notifications
You must be signed in to change notification settings - Fork 108
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
Is there any way to recognize whether it the file is a pdf file directly? #73
Comments
You can import and instantiate this class, then call the |
@h2non How to find the bytes buffer? I only have the request object containing the file. I am using Django Rest Framework. |
I guess you would have to read the file contents first, whether from the local file system or remotely (HTTP, SFTP...). |
Please try this:
Now, notice if you call the function again it will return None
If you
You see a new object is created. @h2non IMHO, this is a bug: |
No description provided.
The text was updated successfully, but these errors were encountered: