add_media
Upload a document as a standalone Media object, reusing identical files by checksum to prevent duplicates. Attach and cite it once per fact it proves.
Instructions
Upload a document as a standalone Media object, reusing an identical file already in the tree.
One image, one Media object -- then attach it wherever it belongs with attach_media(media_ref=...) and cite it once per fact it proves. Uploading the same photograph once per person it depicts is the duplicate pattern that later has to be unpicked by hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the image, PDF, audio or video file to upload. | |
| description | Yes | What the document IS -- archival identity, not the person it mentions ('1900 US census, Cedar Flat, Brannock Co., Ohio, ED 12 sheet 4A'). Files are stored under checksum names. | |
| dedup_by_checksum | No | Reuse an existing Media object if the identical file is already in the tree. Leave True. |