will represent the actual file that I'm trying to upload then right?
And my form really needs to have only the FileField for the file that
I plan to upload then right?
On Jan 27, 10:51 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Thursday, January 27, 2011 3:53:57 PM UTC, hank23 wrote:
>
> > I'm trying to code and implement a file upload screen. I've looked at
> > the documentation at:
>
> >http://docs.djangoproject.com/en/1.2/topics/http/file-uploads/
>
> > and the document shows a simple upload form called UploadFileForm
> > which is shown with two fields coded for it. I'm assuming that the
> > field named "file" of type forms.FileField is just the file
> > itself(location, name, and data), but if so what's the "title" field
> > of type forms.CharField used for and how is it processed? I don't
> > think it's mentioned at all in the documentation except for being
> > shown to be part of the form. Can someone please explain its use and
> > how it should be processed? Thanks.
>
> It's just another field on the form. It's got nothing whatsoever to do with
> the file. It's just to show you can have as many fields on a form as you
> like, and they can be all different types.
> --
> DR.
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment