Re: IOError from HttpResponse(somefile) -- via S3 storage

2007-10-08 Thread fdraft
Well, apparantly this error had to do with the mode I was opening it in : "wb" ... the default mode is "w+b" - as soon as I removed that argument it worked. I guess it could write, but not read? Don't fully understand the issue, but at least it's fixed... On Oct 3, 12:34 pm, "Marty Alchin" <[EMAI

Re: IOError from HttpResponse(somefile) -- via S3 storage

2007-10-03 Thread Marty Alchin
On 10/3/07, fdraft <[EMAIL PROTECTED]> wrote: > So I'm keeping uploaded files in an S3 bucket. For private documents, > their S3 permissions are set to private. So my plan has been that > Django will check if a user is authenticated, and if so, pull the > document from S3 and send it to the client

IOError from HttpResponse(somefile) -- via S3 storage

2007-10-03 Thread fdraft
So I'm keeping uploaded files in an S3 bucket. For private documents, their S3 permissions are set to private. So my plan has been that Django will check if a user is authenticated, and if so, pull the document from S3 and send it to the client. I'm using the boto S3 library to do the actuall inte