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:43:47 +0000 (16:43 +1300)
commit3f879321b586294d1a5afe31ef2081310b6d836e
tree3b7f739060326ca5d790438df077666ab69ca87e
parent68f049a99027c133ebd31258da4e99802bba75bf
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