Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73875
| 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 | <peter.romfeld.hk@gmail.com> |
| 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 <peter.romfeld.hk@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11436.1404361816.18130.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Image Upload with FalconFramework Peter Romfeld <peter.romfeld.hk@gmail.com> - 2014-07-03 11:54 +0800
csiph-web