helpers/attachment_manager.py.dox.md
attachment_manager.py helper module.attachment_manager.py because this directory is intentionally flat.attachment_manager.py owns the runtime implementation.attachment_manager.py.dox.md owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.AttachmentManager (no explicit base class)
is_allowed_file(self, filename: str) -> boolget_file_type(self, filename: str) -> strget_file_extension(filename: str) -> strvalidate_mime_type(self, file) -> boolsave_file(self, file: FileStorage, name: str) -> Tuple[str, Dict]generate_image_preview(self, image_path: str, max_size: int=...) -> Optional[str]PIL, base64, helpers.print_style, helpers.security, io, os, typing, werkzeug.datastructures.os.makedirs, self.get_file_extension, set.union, filename.rsplit.lower, safe_filename, os.path.join, self.get_file_type, file.save, ValueError, self.generate_image_preview, PrintStyle.error, img.thumbnail, io.BytesIO, img.save, base64.b64encode.decode, mime_type.split, img.convert, filename.rsplit, base64.b64encode, buffer.getvalue.No child DOX files.