django celery - how to send request.FILES['photo'] to task -
i'm trying send request.files['photo'], uploaded file site, tcelery via:
tasks.upload_photos.delay(img=request.files['photo'])
i pickle error because cannot serialize it. way send file task?
error: "can't pickle stringo objects" thanks.
read file contents string, pack content type in dict , send that.
Comments
Post a Comment