Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73884
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Image Upload with FalconFramework |
| Date | 2014-07-03 08:06 +0100 |
| References | <53B4D401.8080303@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11442.1404371188.18130.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Image Upload with FalconFramework Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-03 08:06 +0100
csiph-web