Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.086 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'function,': 0.09; 'django': 0.11; 'ios': 0.16; 'used:': 0.16; 'header:User-Agent:1': 0.23; 'form:': 0.24; 'cheers,': 0.24; 'tried': 0.27; 'feature': 0.29; 'file': 0.32; 'class': 0.32; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'hi,': 0.36; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'simple': 0.61; 'phones:': 0.84; 'subject:skip:F 10': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=C/+GcB/zhT0fh4baZHHzyAOOZAHm/hf9/v2Z/bkOQPY=; b=jv2NsOa14xCmsGUqjhf0j5PAKK3NMzuKbzZ0B5C4+nGwELyh5E0grB7GpsqsRLcn1u AnhpT7BCWHB8wH/niXz8qjus4D3B4mZ5ws2L5wycaZ9xnLCBcEFRC9PwxlZNcdQKeXJe Wyu+hGBjBycWtvZ4NRtJ9TwNS+7Jdh+NhUjopIvgvKLQaqv7HBSAfnlwBmSXyM5NUcny hOcnPEKEgPv0GTK3Kh1MpD7NhW+oUErS6cKnCJJQGxmnyhbxJF8ASUyfeysvyb7SG85w /yhrdsRBGEEbR33g0+PC1kmOUPldqbPuze1zjQL2DzRWv7KoKG5d/ouEvOlTqHHRV5ix 6d3w== X-Received: by 10.152.23.136 with SMTP id m8mr1603543laf.2.1404359685774; Wed, 02 Jul 2014 20:54:45 -0700 (PDT) Date: Thu, 03 Jul 2014 11:54:41 +0800 From: Peter Romfeld User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: python-list@python.org Subject: Image Upload with FalconFramework Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 03 Jul 2014 06:30:14 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404361816 news.xs4all.nl 2927 [2001:888:2000:d::a6]:59039 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73875 Hi, I am stuck at a simple image upload function, in django i just used: for feature phones: file = request.body iOS with Form: class ImageForm(forms.Form): image = forms.FileField() form = ImageForm(request.POST, request.FILES) file = request.FILES['image'].read() with falcon i tried but not working; req.stream.read() Cheers, Peter