> Try this > > fileitem.seek(0, 2) # Seek to the end of the file. > filesize = fileitem.tell() # Get the position of EOF. > fileitem.seek(0) # Reset the file position to the beginning.
thanks for the info. i just had to change it from fileitem to fileitem.file, e.g. fileitem.file.seek(0, 2), and it worked fine. - h3m4n -- http://mail.python.org/mailman/listinfo/python-list