I want to receive a message with several files from the image downloader. ( I use this ) Most examples show how to get one image from a message.
I tried many ways but never got results. for example
self.request.POST['Filename']
gives only the first file name.
What if there are several files / images in the message?
The reason for this is resizing before uploading images that are too large for the Google engine. For loading.
EDIT:
self.request.POST.multi.__dict__
shows
{'_items':
[('Filename', 'camila1.jpg'),
('Filedata[]', FieldStorage('Filedata[]', 'camila1.jpg')),
('Upload', 'Submit Query\r\n--negpwjpcenudkacqrxpleuuubfqqftwm----negpwjpcenudkacqrxpleuuubfqqftwm\r\nContent-Disposition: form-data; name="Filename"\r\n\r\nbornToBeWild1.jpg'),
('Filedata[]', FieldStorage('Filedata[]', 'bornToBeWild1.jpg')),
('Upload', 'Submit Query')]}
Chris source
share