Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73884 > unrolled thread
| Started by | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| First post | 2014-07-03 08:06 +0100 |
| Last post | 2014-07-03 08:06 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Image Upload with FalconFramework Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-03 08:06 +0100
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-07-03 08:06 +0100 |
| Subject | Re: Image Upload with FalconFramework |
| Message-ID | <mailman.11442.1404371188.18130.python-list@python.org> |
On 03/07/2014 04:54, Peter Romfeld wrote: > 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() What is forms? image is defined at the class level, not the instance level, did you actually mean that? > form = ImageForm(request.POST, request.FILES) > file = request.FILES['image'].read() file has been overwritten. > > with falcon i tried but not working; > req.stream.read() req is undefined here. > > Cheers, > Peter > So please give us your OS and Python versions, the exact code that you've tried to run, how you've tried to run it, what you expected to happen and what actually happened including the complete traceback if any. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Back to top | Article view | comp.lang.python
csiph-web