We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've this code that works just fine locally:
file_bytes = file.file.read() kind = filetype.guess(file_bytes)
file type is UploadFile from FastAPI. So, file.read() returns a bytes object.
file
file.read()
bytes
I'm using python 3.10 both locally and in AWS Lambda, but for some reason, in the Lambda environment the result from guess is None for any given file.
guess
FWIW: both local and lambda env are using little endian (?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've this code that works just fine locally:
file
type is UploadFile from FastAPI. So,file.read()
returns abytes
object.I'm using python 3.10 both locally and in AWS Lambda, but for some reason, in the Lambda environment the result from
guess
is None for any given file.FWIW: both local and lambda env are using little endian (?
The text was updated successfully, but these errors were encountered: