Update with zod updates

mimetype detection, checking file existence