"Joey C." wrote:

> I'm afraid on my interpreter, this works.
>
>>>> if os.path.getsize("C:\\Documents and Settings\\Joey\\Desktop\\file.txt") 
>>>> <= 1000:
>>>> print "<= 1000."
>
> <= 1000.
>
> No problems there, as you can see.

I'm not sure if you replied to my post, but what I tried to say is that

    params["upfile"].file

doesn't return a string, it returns a file object.  and os.path.getsize
on something that's not a string gives the TypeError you're seeing.

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to