application/octet-stream is hardcoded for now because ResourceHandler server the swf files. Using mime utilities doesn't return the correct mime, a solution would be to get mimetype from the file extension name but it wasn't implemented in this PR.