[{"data":1,"prerenderedAt":631,"buildId":632},["ShallowReactive",2],{"\u002Flibrary\u002Fattachments":3,"\u002Flibrary\u002Fattachments-surround":344,"navigation":355},{"id":4,"title":5,"body":6,"description":336,"extension":337,"meta":338,"navigation":339,"path":340,"seo":341,"stem":342,"__hash__":343},"docs\u002F2.library\u002F6.attachments.md","Attachments",{"type":7,"value":8,"toc":330},"minimark",[9,13,68,73,88,91,95,98,157,161,199,203,212,308,326],[10,11,12],"p",{},"An attachment is a piece of text stored with a file: the text a workflow read from a scan, notes, or structured data. The file itself never changes.",[14,15,16,32],"table",{},[17,18,19],"thead",{},[20,21,22,26,29],"tr",{},[23,24,25],"th",{},"Kind",[23,27,28],{},"Use it for",[23,30,31],{},"Searchable",[33,34,35,47,57],"tbody",{},[20,36,37,41,44],{},[38,39,40],"td",{},"Text",[38,42,43],{},"Plain text, such as OCR output",[38,45,46],{},"Yes",[20,48,49,52,55],{},[38,50,51],{},"Markdown",[38,53,54],{},"Formatted notes",[38,56,46],{},[20,58,59,62,65],{},[38,60,61],{},"JSON",[38,63,64],{},"Structured data",[38,66,67],{},"No",[69,70,72],"h2",{"id":71},"viewing-attachments","Viewing attachments",[10,74,75,76,79,80,83,84,87],{},"A file's details panel lists its attachments under ",[77,78,5],"strong",{},". Click one to read it, then ",[77,81,82],{},"Copy text"," or ",[77,85,86],{},"Download",". Attachments are always shown as plain text, never rendered, so a Markdown or HTML attachment can't run anything in your browser. The trash button deletes an attachment for good.",[10,89,90],{},"Attachments are private: they're never shown on share pages.",[69,92,94],{"id":93},"names","Names",[10,96,97],{},"Each attachment on a file has a unique name, ignoring case. When something adds an attachment whose name is taken, it can:",[14,99,100,110],{},[17,101,102],{},[20,103,104,107],{},[23,105,106],{},"Choice",[23,108,109],{},"Result",[33,111,112,120,128,145],{},[20,113,114,117],{},[38,115,116],{},"Replace it (default)",[38,118,119],{},"The new text replaces the old attachment.",[20,121,122,125],{},[38,123,124],{},"Keep the existing one",[38,126,127],{},"Nothing changes.",[20,129,130,133],{},[38,131,132],{},"Add with a new name",[38,134,135,136,140,141,144],{},"Saved as ",[137,138,139],"code",{},"Name (2)",", ",[137,142,143],{},"Name (3)"," and so on.",[20,146,147,150],{},[38,148,149],{},"Fail",[38,151,152,153,156],{},"The step or request fails with ",[137,154,155],{},"attachment_exists",".",[69,158,160],{"id":159},"limits","Limits",[14,162,163,173],{},[17,164,165],{},[20,166,167,170],{},[23,168,169],{},"Limit",[23,171,172],{},"Value",[33,174,175,183,191],{},[20,176,177,180],{},[38,178,179],{},"Size of one attachment",[38,181,182],{},"1 MiB",[20,184,185,188],{},[38,186,187],{},"Attachments per file",[38,189,190],{},"50",[20,192,193,196],{},[38,194,195],{},"Name length",[38,197,198],{},"100 characters",[69,200,202],{"id":201},"adding-attachments","Adding attachments",[10,204,205,206,211],{},"Workflows add them with ",[207,208,210],"a",{"href":209},"\u002Freference\u002Fsteps#add-attachment","Add attachment"," or Save file. With an API token that can write files:",[213,214,219],"pre",{"className":215,"code":216,"language":217,"meta":218,"style":218},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark","curl -X POST https:\u002F\u002Ffiles.example.com\u002Fapi\u002Fv1\u002Ffiles\u002F\u003Cfile id>\u002Fattachments \\\n  -H \"Authorization: Bearer \u003Ctoken>\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"name\": \"Notes\", \"kind\": \"markdown\", \"text\": \"# Receipt\\nPaid in full.\", \"onConflict\": \"rename\" }'\n","bash","",[137,220,221,265,293],{"__ignoreMap":218},[222,223,226,230,234,238,241,245,248,251,255,258,261],"span",{"class":224,"line":225},"line",1,[222,227,229],{"class":228},"sbgvK","curl",[222,231,233],{"class":232},"stzsN"," -X",[222,235,237],{"class":236},"s_sjI"," POST",[222,239,240],{"class":236}," https:\u002F\u002Ffiles.example.com\u002Fapi\u002Fv1\u002Ffiles\u002F",[222,242,244],{"class":243},"smGrS","\u003C",[222,246,247],{"class":236},"file",[222,249,250],{"class":236}," i",[222,252,254],{"class":253},"su5hD","d",[222,256,257],{"class":243},">",[222,259,260],{"class":236},"\u002Fattachments",[222,262,264],{"class":263},"s_hVV"," \\\n",[222,266,268,271,275,278,281,284,286,289,291],{"class":224,"line":267},2,[222,269,270],{"class":232},"  -H",[222,272,274],{"class":273},"sjJ54"," \"",[222,276,277],{"class":236},"Authorization: Bearer \u003Ctoken>",[222,279,280],{"class":273},"\"",[222,282,283],{"class":232}," -H",[222,285,274],{"class":273},[222,287,288],{"class":236},"Content-Type: application\u002Fjson",[222,290,280],{"class":273},[222,292,264],{"class":263},[222,294,296,299,302,305],{"class":224,"line":295},3,[222,297,298],{"class":232},"  -d",[222,300,301],{"class":273}," '",[222,303,304],{"class":236},"{ \"name\": \"Notes\", \"kind\": \"markdown\", \"text\": \"# Receipt\\nPaid in full.\", \"onConflict\": \"rename\" }",[222,306,307],{"class":273},"'\n",[10,309,310,313,314,140,317,140,320,83,323,156],{},[137,311,312],{},"onConflict"," takes ",[137,315,316],{},"replace",[137,318,319],{},"keep-existing",[137,321,322],{},"rename",[137,324,325],{},"fail",[327,328,329],"style",{},"html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .stzsN, html code.shiki .stzsN{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s_hVV, html code.shiki .s_hVV{--shiki-light:#90A4AE;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":218,"searchDepth":267,"depth":295,"links":331},[332,333,334,335],{"id":71,"depth":267,"text":72},{"id":93,"depth":267,"text":94},{"id":159,"depth":267,"text":160},{"id":201,"depth":267,"text":202},"Text kept with a file, such as OCR results or notes, that you can read, download and search.","md",{},true,"\u002Flibrary\u002Fattachments",{"title":5,"description":336},"2.library\u002F6.attachments","JJb2tzquN1fM17OJZV22_-wKLbI6PV64eVgQmEMKsws",[345,350],{"title":346,"path":347,"stem":348,"description":349,"children":-1},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields","Keep your own details on files, such as an invoice number or a due date, and filter by them.",{"title":351,"path":352,"stem":353,"description":354,"children":-1},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search","How searching Files matches names, tags, fields and attachments, and how to filter and sort the results.",[356,376,406,450,461,480,491,534,569,583,599],{"title":357,"path":358,"stem":359,"children":360,"icon":375},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[361,363,367,371],{"title":362,"path":358,"stem":359},"Introduction",{"title":364,"path":365,"stem":366},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":368,"path":369,"stem":370},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":372,"path":373,"stem":374},"Updating Avenvail","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":377,"icon":378,"path":379,"stem":380,"children":381,"page":405},"Library","i-lucide-folder","\u002Flibrary","2.library",[382,386,390,394,398,399,400,401],{"title":383,"path":384,"stem":385},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":387,"path":388,"stem":389},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":391,"path":392,"stem":393},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":395,"path":396,"stem":397},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":346,"path":347,"stem":348},{"title":5,"path":340,"stem":342},{"title":351,"path":352,"stem":353},{"title":402,"path":403,"stem":404},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":407,"path":408,"stem":409,"children":410,"icon":449},"Automations","\u002Fautomations","3.automations\u002F01.index",[411,413,417,421,425,429,433,437,441,445],{"title":412,"path":408,"stem":409},"Overview",{"title":414,"path":415,"stem":416},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":418,"path":419,"stem":420},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":422,"path":423,"stem":424},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":426,"path":427,"stem":428},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":430,"path":431,"stem":432},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":434,"path":435,"stem":436},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":438,"path":439,"stem":440},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":442,"path":443,"stem":444},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":446,"path":447,"stem":448},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":451,"path":452,"stem":453,"children":454,"icon":460},"Connections","\u002Fconnections","4.connections\u002F1.index",[455,456],{"title":412,"path":452,"stem":453},{"title":457,"path":458,"stem":459},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers","i-lucide-plug",{"title":462,"path":463,"stem":464,"children":465,"icon":479},"AI","\u002Fai","5.ai\u002F1.index",[466,467,471,475],{"title":412,"path":463,"stem":464},{"title":468,"path":469,"stem":470},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":472,"path":473,"stem":474},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":476,"path":477,"stem":478},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":481,"path":482,"stem":483,"children":484,"icon":490},"OCR","\u002Focr","5.ocr\u002F1.index",[485,486],{"title":412,"path":482,"stem":483},{"title":487,"path":488,"stem":489},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":492,"path":493,"stem":494,"children":495,"icon":533},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[496,497,501,505,509,513,517,521,525,529],{"title":412,"path":493,"stem":494},{"title":498,"path":499,"stem":500},"Troubleshooting","\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":502,"path":503,"stem":504},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":506,"path":507,"stem":508},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":510,"path":511,"stem":512},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":514,"path":515,"stem":516},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":518,"path":519,"stem":520},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":522,"path":523,"stem":524},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":526,"path":527,"stem":528},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":530,"path":531,"stem":532},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":535,"path":536,"stem":537,"children":538,"icon":568},"Guides","\u002Fguides","7.guides\u002F1.index",[539,540,544,548,552,556,560,564],{"title":412,"path":536,"stem":537},{"title":541,"path":542,"stem":543},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":545,"path":546,"stem":547},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":549,"path":550,"stem":551},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":553,"path":554,"stem":555},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":557,"path":558,"stem":559},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":561,"path":562,"stem":563},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":565,"path":566,"stem":567},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots","i-lucide-book-open",{"title":570,"icon":571,"path":572,"stem":573,"children":574,"page":405},"Reference","i-lucide-library","\u002Freference","8.reference",[575,579],{"title":576,"path":577,"stem":578},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":580,"path":581,"stem":582},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":584,"path":585,"stem":586,"children":587,"icon":598},"Development","\u002Fdevelopment","9.development\u002F1.index",[588,590,594],{"title":589,"path":585,"stem":586},"Local development",{"title":591,"path":592,"stem":593},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":595,"path":596,"stem":597},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":600,"path":601,"stem":602,"children":603,"icon":630},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[604,606,610,614,618,622,626],{"title":605,"path":601,"stem":602},"Comparing Avenvail",{"title":607,"path":608,"stem":609},"Avenvail and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":611,"path":612,"stem":613},"Avenvail and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":615,"path":616,"stem":617},"Avenvail and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":619,"path":620,"stem":621},"Avenvail and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":623,"path":624,"stem":625},"Avenvail and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":627,"path":628,"stem":629},"Avenvail and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796307525284,"dedf49b8-a40d-4148-af64-03be4eab20c1"]