Changed function to use mimetype as type
1 file changed