Comments on: dotProject file icons mod http://compsci.ca/blog/dotproject-file-icons-mod/ Programming, Education, Computer Science Wed, 30 Sep 2020 08:31:44 -0400 http://wordpress.org/?v=2.8.4 hourly 1 By: Tony http://compsci.ca/blog/dotproject-file-icons-mod/comment-page-1/#comment-114 Tony Mon, 20 Nov 2006 15:45:09 +0000 http://compsci.ca/blog/dotproject-file-icons-mod/#comment-114 Keith, Thank you for taking a look at this, and your feedback. Instead of looking up the icon to use each time, and as suggested by MacOfTheEast on the dotProject forums - the is now a set of SQL to bring the existing files up to date. Keith,

Thank you for taking a look at this, and your feedback.

Instead of looking up the icon to use each time, and as suggested by MacOfTheEast on the dotProject forums – the is now a set of SQL to bring the existing files up to date.

]]>
By: Keith Casey http://compsci.ca/blog/dotproject-file-icons-mod/comment-page-1/#comment-102 Keith Casey Sat, 18 Nov 2006 17:18:50 +0000 http://compsci.ca/blog/dotproject-file-icons-mod/#comment-102 Tony, Thanks, I've been playing with this mod - as I was working on a similar one - and wanted to throw out my approach. Your system works on detecting the mime-type upon upload which is *very* reliable, but only works for files newly uploaded... Alternatively, since we're storing this information anyway, why not detect it why the file list is displayed and choose which file to display then? Or - if you're concerned about the performance hit in always doing this lookup - you could store the resulting image icon the first time it's determined. That way you support large legacy installs with minimal effort. keith Tony,

Thanks, I’ve been playing with this mod – as I was working on a similar one – and wanted to throw out my approach. Your system works on detecting the mime-type upon upload which is *very* reliable, but only works for files newly uploaded…

Alternatively, since we’re storing this information anyway, why not detect it why the file list is displayed and choose which file to display then? Or – if you’re concerned about the performance hit in always doing this lookup – you could store the resulting image icon the first time it’s determined.

That way you support large legacy installs with minimal effort.

keith

]]>