I thought maybe someone wanted to use this little plugin I’ve written.
What it does is that it sends you back the name of the file that’s been uploaded using the default custom-file-field in EE2.x.
Wrap your custom file field in the {exp:get_filename}{/exp:get_filename} tags and the plugin will return your filename.
Example: Uploaded file is: Image.jpg
{exp:get_filename}{custom_file_field_name}{/exp:get_filename}will return “Image”.
Download: http://www.naboovalley.com/downloads/get_filename.zip
Note: It will NOT work with filenames that have multiple “.” characters in them. (ie. “my.file.is.so.cool.jpg”)
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.