Best way to work with multiple file extensions

Hi,

I have the code to upload files with multiple extensions but what is the best way to display them?

Say I have a .jpg which is different to .png? Is this going to require pure PHP or is there a better way in Yii to do this?

I dont understand you question exactly, what do you mean by "best way to display them"?

Display what? the files? the files extensions? please elabore more so we can help you.

you can save the extension and the filename separately.IMO

I was talking about the file extensions

"you can save the extension and the filename separately.IMO"

And is there no other way?

Also does Yii have any function libraries for working with files?

I don’t understand the question too :), but as for “you can save the extension and the filename separately.IMO”, then to my mind an extension is a part of filename, and it looks strange to save them separately, pathinfo($filename, PATHINFO_EXTENSION); works well