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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -