Pass original filename to file_mime_type()
authorAaron Wells <aaronw@catalyst.net.nz>
Wed, 2 Apr 2014 03:41:22 +0000 (16:41 +1300)
committerRobert Lyon <robertl@catalyst.net.nz>
Wed, 2 Apr 2014 18:50:37 +0000 (07:50 +1300)
commitf62ea3d290e84fd0a624c444d65fb7a1ee73a4bb
tree3ffe9c89e974fab40f27bad29184e01b04c0abd3
parentf758a3efff7634bcd416d4524408cbaafb2281bf
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