Fixed always upload faild because allowed mimes is bad. and create unix_to_small helper (but deprecated)