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

fileno call exception #32

Open
Davidrjx opened this issue Oct 18, 2017 · 2 comments
Open

fileno call exception #32

Davidrjx opened this issue Oct 18, 2017 · 2 comments

Comments

@Davidrjx
Copy link

Environment:
Python2.7.10
CentOS7
My Case:
django InMemoryUploadedFile object as in passed to sendfile.
i know this object is not regular file object but has fileno method that sendfile's interface definition.
if a regular is a MUST, can the request like my case be implemented? thanks

@giampaolo
Copy link
Owner

I am not sure I understand your question.
For clarity, pysendfile has nothing to do with Django. I point this out because I know in the django world there is something call "sendfile" or "x-sendfile" but it's something unrelated with the pysendfile project.

@Davidrjx
Copy link
Author

@giampaolo thanks for your clarification. I am sorry you did not clearly understand what i meant as lack of more details. However, through my search, InMemoryUploadedFile object is of python BufferedIO type (BytesIO Class) without getting fd from fileno call but TemporaryUploadedFile is ok.

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

2 participants