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 03:44:19 +0000 (16:44 +1300)
commitc8da15a15ac9ee5b1c3212d125ed079f930fd65e
treec6ec82d7f5f5a7a07202c60d57d1e77b086be7f0
parent2a6ac67c067354d5d5ac4acb628353217ddf7f90
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