-
-
Notifications
You must be signed in to change notification settings - Fork 18
Incorrect s3 upload path separator on windows #93
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
Comments
Hi @AbsoluteDestiny that's interesting. To be honest, I haven't tried the package on Windows yet. Do you happen to have a stacktrace for me or some sample code to reproduce this? |
@AbsoluteDestiny I think I found the bug and wrote a patch, can you test it please? |
@codingjoe I'm getting the following error:
in the boto code wants to do this:
on line 32 of your forms.py:
looks like |
thx @AbsoluteDestiny I just updated the PR, it should work now |
When django is being hosted on a windows machine (such as a local dev environment) the file is uploaded using backslashes as the path separator. So, instead of uploading to the /tmp/s3file folder the file get a single long filename with backslashes in it.
This then causes a File Does Not Exist IOError in boto3 when it tries to pull the file back.
The text was updated successfully, but these errors were encountered: