-
Notifications
You must be signed in to change notification settings - Fork 74
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
Opening file issue #56
Comments
You can close the opened file in
Apart from that, the method |
That was exactly what I attempted to do originally. But while in the on_completion method I still get the error that the file is open. Here is the error I get: Code that gets the above error
Code that works and gets no error but is in the inappropriate location of get_response_data:
|
@danielgarner64 Is there any way I can reproduce this error ? |
@jerinpetergeorge Here is a copy of a mini-project that reproduces the error, sorry for the lack of comments. |
I tried to reproduce the issue, unfortunately, I couldn't. I have executed the given code as-is and both works just charm (Ubuntu OS) |
Just confirmed, you are correct this is not a problem for Ubuntu with Python 3.6. |
In the ChunkedUploadCompleteView class in the post method there is the following call on line 286:
self.on_completion(chunked_upload.get_uploaded_file(), request)
This opens the uploaded file and returns it to the on_completion user method.
This prevented me from moving the uploaded file to a separate database model as the file was open.
I also couldn't do this work in the post_save method as it causes an error as the file is no longer present when the get_uploade_file attempts to open the file.
In the end I shifted the model shifting to the get_response_data method which allowed me to do what I want without modifying this project.
The text was updated successfully, but these errors were encountered: