victorsubervi at gmail.com
Sat Dec 26 16:28:58 CET 2009
For some reason, I'm not able to upload images to insert into my database.
Here's my html:
<input type="file" name="pic0" />
<input type="file" name="pic1" />
Here's the code from the page that processes the data from the preceding
i = 0
for picsStore, num in pics().iteritems():
if picsStore == store:
numPics = int(num)
while i < numPics:
y += 1
pic = form.getfirst('pic%d' % i)
if len(pic) > 0:
The output, however, when I print out ourPics, is just the names of the
images (e.g., "image.jpg"). I haven't included complete code because it
appears to me that my code is working perfectly well, but I've simply not
coded to achieve my goal which, obviously, is to capture the image itself,
not its name. What have I missed?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list