Re: FileField model question

2011-06-23 Thread raj
I actually did google a lot, it's just that every link I got seemed to show a different way of doing this. I'm going to try that django snippet way and see where I get. Then I have to figure out how to put the files up for download after they have been uploaded. Thank you. On Jun 23, 1:06 pm,

Re: FileField model question

2011-06-23 Thread Herman Schistad
On Thu, Jun 23, 2011 at 18:51, raj wrote: > I was reading https://docs.djangoproject.com/en/1.3/topics/http/file-uploads/, > and I got a little confused when looking at the handle_uploaded_file > function. You should read:

FileField model question

2011-06-23 Thread raj
I was reading https://docs.djangoproject.com/en/1.3/topics/http/file-uploads/, and I got a little confused when looking at the handle_uploaded_file function. def handle_uploaded_file(f): destination = open('some/file/name.txt', 'wb+') for chunk in f.chunks():