Pass original filename to file_mime_type()
authorAaron Wells <aaronw@catalyst.net.nz>
Wed, 2 Apr 2014 03:41:22 +0000 (16:41 +1300)
committerAaron Wells <aaronw@catalyst.net.nz>
Wed, 2 Apr 2014 23:49:10 +0000 (12:49 +1300)
commite8e2802735356f2f1367508c38bf17274dbc3c4f
tree6b2d4b7661851073ff0efe4637baaeaa70909610
parentafdae5c6e08ea6f0a8da9cc7117d8f0ef84e79bc
Pass original filename to file_mime_type()

Bug 1249858: When being called for file uploads, file_mime_type()
is getting the PHP temp upload file's filename, and so the attempt
to check the file extension is always unsuccessful because those
temp file names are gibberish

Change-Id: I631ca8c80316919b6aefc9712b68017d752ba942
htdocs/artefact/file/lib.php
htdocs/lib/file.php