Re: Getting the base filename of FileField in templates

2007-10-22 Thread Malcolm Tredinnick
On Mon, 2007-10-22 at 04:55 -0700, [EMAIL PROTECTED] wrote: > Hi, > > Playing on the latest SVN with newforms and FileFields, I was > wondering if there is a built-in way to retrieve the base filename of > a FileField. > Currently in my templates, {{ my_model.my_filefield }} displays the > upload

Getting the base filename of FileField in templates

2007-10-22 Thread [EMAIL PROTECTED]
Hi, Playing on the latest SVN with newforms and FileFields, I was wondering if there is a built-in way to retrieve the base filename of a FileField. Currently in my templates, {{ my_model.my_filefield }} displays the uploaded filename appended to the value of 'upload_to', which I do not find very