Re: Basic file upload (not model file object)

2005-08-30 Thread Jason F. McBrayer
On Tue, 2005-08-30 at 03:32 -0700, Dagur wrote: > It took me a while but I figured out how to do this: > > if request.POST: > new_data = request.POST.copy() > new_data.update(request.FILES) # This has to be added > > errors =

Re: Basic file upload (not model file object)

2005-08-30 Thread Dagur
Jason F. McBrayer wrote: > I'm almost certainly missing something very, very simple here, but I > haven't been able to find what it is on my own. > > One view in my app should allow users to upload an OPML file, which the > app will parse and use to import feeds, but which won't otherwise be >

Re: Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
On Mon, 2005-08-29 at 20:04 -0700, Leonardo Santagada wrote: > Just guessing, but in python strings are byte arrays, so I don't think > there is any error in that. Or maybe there is a problem with the form > sending the content and the validator expecting a filename, or the > inverse. > > Just

Re: Basic file upload (not model file object)

2005-08-29 Thread Leonardo Santagada
Just guessing, but in python strings are byte arrays, so I don't think there is any error in that. Or maybe there is a problem with the form sending the content and the validator expecting a filename, or the inverse. Just my 2 cents, and as noone answered this I thought it may help

Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
I'm almost certainly missing something very, very simple here, but I haven't been able to find what it is on my own. One view in my app should allow users to upload an OPML file, which the app will parse and use to import feeds, but which won't otherwise be stored. As with most other