Hi, > But to clarify it seems like the forms.fileField can be used in a model in > place of models.filefield, as in the code below.
> class UploadFileForm(forms.Form): > title = forms.CharField(max_length=50) > file = forms.FileField() In your code you are using only forms, no models involved. MyModel(models.Model) file = forms.FileField() will not work for example. > Is there some advantage to the formsHandleUpload you obviously don’t have to write the code yourself for writing the file to the filesystem. But if this is form is somehow connected to a model you would have write the path to that file (and other stuff) into the DB yourself. Cheers Ivo
smime.p7s
Description: S/MIME cryptographic signature