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
continuing with #26, explicit seeking at 0 on the file stream could help avoid #37.
def get_params(self, **keywords): extension = self.name.split(".")[-1] keywords['file_type'] = extension self.file.seek(0) # <-- content = self.file.read() if content: keywords['file_content'] = content else: raise IOError("No content was uploaded.") return keywords
The text was updated successfully, but these errors were encountered:
daecd7c
test #39, stringio has been read() can be read() again by seeking at 0
ba5fcf6
No branches or pull requests
continuing with #26, explicit seeking at 0 on the file stream could help avoid #37.
The text was updated successfully, but these errors were encountered: