0
타사 서버에서 호스팅되는 이미지를 업로드하려고합니다.django cloudinary upload URL을 통한 원격 이미지 - 잘못된 파일 이름
데프 saveEdit (요청) : 나는 다음과 같은 오류 얻을
image = request.REQUEST.get('image','')
title = request.REQUEST.get('title','')
type = request.REQUEST.get('type','')
state = request.REQUEST.get('state','')
cimage = cloudinary.uploader.upload(image, public_id = 'img_'+request.user.__str__()+"_"+title, format='jpg')
return HttpResponse('Got '+image + " type: "+type + " state: "+state + " title:"+request.user.__str__() + "_"+title + " uploaded "+cimage.image.url)
: 여기 내가 사용하고 코드입니다
Invalid image file Request Method: GET Request URL: http://127.0.0.1:8000/saveEdit?image=http://app2.pixlr.com/_temp/507f95e1ec8d8337e5000002.jpg&type=jpg&state=copy&title=13838 Django Version: 1.4.1 Exception Type: Exception Exception Value: Invalid image file Exception Location: /Library/Python/2.7/site-packages/cloudinary/uploader.py in call_api, line 155
을 내가 뭘 잘못 확실하지 않다가 - 수 있습니다 당신은 도움?
감사합니다.
URL을 전달할 때 업로드 방법이 이미지를 기대할 수 있습니다. –