The raw, binary data of the file.  After uploading, it ends up at
request.FILES['file']['content'] (where 'file' is the name of your
form field).

An example:

if request.FILES.has_key('file'):
    new_file = File(some_field='some_val',
date_uploaded=datetime.now())
    new_file.save_file_file(request.FILES['file']['filename'],
request.FILES['file']['content']) # because the field name is file
    new_file.save


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to