Comment 26 for bug 1249858

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3177
Committed: http://gitorious.org/mahara/mahara/commit/f62ea3d290e84fd0a624c444d65fb7a1ee73a4bb
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit f62ea3d290e84fd0a624c444d65fb7a1ee73a4bb
Author: Aaron Wells <email address hidden>
Date: Wed Apr 2 16:41:22 2014 +1300

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