commit c7e99a9f8c96df8f56449311b527ec8aa474da88
Author: Richard Mansfield <email address hidden>
Date: Mon Jan 16 11:09:01 2012 +1300
Ensure filetype is set when creating new file artefacts (bug #914574)
When a new file artefact is created from a file that wasn't uploaded
by a browser, the filetype property is not always set. This causes
warnings when extracting files from archives. Moving the call to
file_mime_type right before construction of the new artefact type
fixes the problem and allows us to remove some other calls to
file_mime_type during import and upload.
Change-Id: I8e644bfc1e6bc0fbaa90f1e6637288997b0d028c
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/991 gitorious. org/mahara/ mahara/ commit/ c7e99a9f8c96df8 f56449311b527ec 8aa474da88
Committed: http://
Submitter: Francois Marier (<email address hidden>)
Branch: master
commit c7e99a9f8c96df8 f56449311b527ec 8aa474da88
Author: Richard Mansfield <email address hidden>
Date: Mon Jan 16 11:09:01 2012 +1300
Ensure filetype is set when creating new file artefacts (bug #914574)
When a new file artefact is created from a file that wasn't uploaded
by a browser, the filetype property is not always set. This causes
warnings when extracting files from archives. Moving the call to
file_mime_type right before construction of the new artefact type
fixes the problem and allows us to remove some other calls to
file_mime_type during import and upload.
Change-Id: I8e644bfc1e6bc0 fbaa90f1e663728 8997b0d028c
Signed-off-by: Richard Mansfield <email address hidden>