1π
β
I see your problem can be solved in two ways:
a) InMemoryUploadFile
will be deleted after your view (function)
returns something.
- User send file on
view_reciever
, where this file will be processed with your business logic, and saved on thecloud
and returned to a user as statistic for confirmation, whether it is good or not. - If file is good, then it is already saved on your cloud.
- If it is bad β then delete it.
b) Using Ajax
request:
- User can send file to a
view
which will only process your file
andreturn statistics
viaajax request
. - If it is good for user, he can send new
ajax request
with this file, and it would save file in the cloud. - If it is bad,
do nothing (but userfriendly)
(it isnβt stored on your cloud anyway).
π€oruchkin
Source:stackexchange.com