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:41:22 +0000 (16:41 +1300)
commitbfaf9fa0b437ea097be5f6ea84c4b4b90b344e3b
treed0471b8f6c9a96eb0fc69c34e9ce82161741fb29
parent30d1409c274c10c6a08a10cc70ad52da2a10709a
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