[Patch] Add get_FOO_basename() for FileFields
|Reported by:||Owned by:||Adrian Holovaty|
|Severity:||Keywords:||filefield basename filename|
|Cc:||herbert.poul@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It is currently only possible to retrieve absolute pathname or URL of an uploaded file, but not it's basename..(ie. bare filename without any path) - imho this is a very common need.. and i checked dozend of times before believing that it's not already there (i hope i didn't miss it though ;) )
this patch adds a get_FOO_basename() which looks exactly like the existing get_FOO_url() and get_FOO_filename() methods .. and returns only the bare filename.