check mimetype instead of opening the file by GDAL