Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73875 > unrolled thread
| Started by | Peter Romfeld <peter.romfeld.hk@gmail.com> |
|---|---|
| First post | 2014-07-03 11:54 +0800 |
| Last post | 2014-07-03 11:54 +0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Image Upload with FalconFramework Peter Romfeld <peter.romfeld.hk@gmail.com> - 2014-07-03 11:54 +0800
| From | Peter Romfeld <peter.romfeld.hk@gmail.com> |
|---|---|
| Date | 2014-07-03 11:54 +0800 |
| Subject | Image 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
Back to top | Article view | comp.lang.python
csiph-web