Fieldtype, Module

Community
Support

DevDemon does not actively monitor this forum
(but you can still get help from other EE users).

For official support, visit the official support site »

EE 1
EE 2
Channel Files

Back to this add-on's main page
View Other Add-ons From DevDemon

     

You must be logged in to post.

Is there a way to get the file extension (not entire mimetype string)

General

mahernet
mahernet

I’d like to use the extension as a class name to apply icons to an anchor.

If not, could you please add it in? Just add this line to mod.channel_files.php around like 378.

$vars[$this->prefix.'extension'$file->extension

Thanks!

Kristen Grote
# 1
Kristen Grote

Thanks for that code snippet, saved my ass!

Nuno
# 2
Nuno

Glad it helped. If you need more support with this go to DevDemon’s website. I don’t think they’re monitoring this forum… which I didn’t realize until I went a few days without a reply to this thread.

http://www.devdemon.com/forums