On Fri, 2008-09-26 at 11:06:18 +0200, Kurt Häusler wrote: > Hi, how are you uploading the files? I upload files to my pylons app > as a Content-Disposition: form-data; Content-Type: > application/octet-stream > and access it in my controller as a request.params['foo'].value in > memory and choose myself where to save it.
It's just you assumption that you're reading file's contents from memory. If data is big enough (don't know how big), it will be written to systemp temp directory (read my other message in this thread), otherwise it will live happily in StringIO object, IIRC. > What feature do you use to make pylons save it direct to disk, I may > look at doing something like that as an optimization. (Although my > current method seems to work well even for pretty large files) Maybe they are not large enough? :-) Let's say, 1 GiB. I know, it's a bad idea to upload such big files using HTTP, but sometimes there's no other way... -- Audrius Kažukauskas
pgpgxpZOSU3zQ.pgp
Description: PGP signature
