r3 - 15 Feb 2005 - 01:32:58 - SamHaslerYou are here: TWiki >  Codev Web > UppercaseAttachments
Tags:
, create new tag
A small point:

If you have an attachment with a GIF, JPG, or JPEG extension (not gif, jpg, or jpeg), the create link at bottom of topic check box does not behave properly. Many Windows clients will have digital camera pictures, etc. that have JPG instead of jpg. Also, the text at the bottom of the upload template makes reference to GIF and JPG in upper case, so I'd think this should work.

The fix is pretty easy. In upload (actually, upload.pl in my installation) there is a function named addLinkToEndOfTopic where there is the line:

    if( $fileName =~ /\.(gif|jpg|jpeg)$/ ) {

This should be:

    if( $fileName =~ /\.(gif|jpg|jpeg)$/i ) {

-- AlWilliams - 26 Sep 2000

Fixed and commited to TWikiAlphaRelease. At the same time, added file type png.

    if( $fileName =~ /\.(gif|jpg|jpeg|png)$/i ) {

-- PeterThoeny - 26 Sep 2000

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo