Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73875 > unrolled thread

Image Upload with FalconFramework

Started byPeter Romfeld <peter.romfeld.hk@gmail.com>
First post2014-07-03 11:54 +0800
Last post2014-07-03 11:54 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Image Upload with FalconFramework Peter Romfeld <peter.romfeld.hk@gmail.com> - 2014-07-03 11:54 +0800

#73875 — Image Upload with FalconFramework

FromPeter Romfeld <peter.romfeld.hk@gmail.com>
Date2014-07-03 11:54 +0800
SubjectImage Upload with FalconFramework
Message-ID<mailman.11436.1404361816.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web