{"componentChunkName":"component---src-templates-platform-tsx","path":"/platforms/javascript/guides/react/enriching-events/attachments/","result":{"data":{"file":{"id":"0602c5fe-edfd-5f39-8a55-1db56d26ff61","relativePath":"common/enriching-events/attachments/index.mdx","sourceInstanceName":"platforms","childMarkdownRemark":null,"childMdx":{"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Attachments\",\n  \"sidebar_order\": 100,\n  \"description\": \"Learn more about how Sentry can store additional files in the same request as event attachments.\",\n  \"notoc\": true,\n  \"supported\": [\"native\", \"javascript\"]\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar PlatformSection = makeShortcode(\"PlatformSection\");\nvar PlatformContent = makeShortcode(\"PlatformContent\");\nvar Note = makeShortcode(\"Note\");\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"Sentry can augment your crash reports by storing additional files alongside the event, such as log files, as attachments. Attachments allow the files within a crash to not only upload to Sentry, but also persist for further investigation.\"), mdx(PlatformSection, {\n    supported: [\"native\"],\n    mdxType: \"PlatformSection\"\n  }, mdx(\"p\", null, \"You can use a higher-level SDK for platforms with built-in support for native crashes, or generate and upload attachments using the API:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"/platforms/native/\"\n  }), \"Native C/C++\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"/platforms/javascript/guides/electron/\"\n  }), \"Electron\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"/platforms/native/guides/minidumps/\"\n  }), \"Minidump endpoint\"))), mdx(\"p\", null, \"To receive symbolicated stack traces, you have to upload debug information to Sentry. Unless the option to store crash reports is enabled, Sentry will use the crash reports only to create the event, then will drop the files. For more information, see\\xA0\", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"/workflow/debug-files/\"\n  }), \"Debug Information Files\"), \".\")), mdx(\"h2\", {\n    \"id\": \"uploading-attachments\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h2\"\n  }, {\n    \"href\": \"#uploading-attachments\",\n    \"aria-label\": \"uploading attachments permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"viewBox\": \"0 0 24 24\",\n    \"xmlns\": \"http://www.w3.org/2000/svg\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"d\": \"M10.879 6.05L15 1.93A5.001 5.001 0 0 1 22.071 9l-4.121 4.121a1 1 0 0 1-1.414-1.414l4.12-4.121a3 3 0 1 0-4.242-4.243l-4.121 4.121a1 1 0 1 1-1.414-1.414zm2.242 11.9L9 22.07A5 5 0 1 1 1.929 15l4.121-4.121a1 1 0 0 1 1.414 1.414l-4.12 4.121a3 3 0 1 0 4.242 4.243l4.121-4.121a1 1 0 1 1 1.414 1.414zm-8.364-.122l13.071-13.07a1 1 0 0 1 1.415 1.414L6.172 19.242a1 1 0 1 1-1.415-1.414z\",\n    \"fill\": \"currentColor\"\n  })))), \"Uploading Attachments\"), mdx(PlatformContent, {\n    includePath: \"add-attachment\",\n    mdxType: \"PlatformContent\"\n  }), mdx(Note, {\n    mdxType: \"Note\"\n  }, mdx(\"p\", null, \"Sentry allows at most 100MB of attachments per event, including the crash report file (if applicable) Uploads exceeding this size are rejected with HTTP error \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"413 Payload Too Large\"), \" and the data is dropped immediately. To add larger or more files, consider secondary storage options.\"), mdx(PlatformSection, {\n    supported: [\"native\"],\n    mdxType: \"PlatformSection\"\n  }, mdx(\"p\", null, \"Usually, native crash reports range from a few kilobytes to a few megabytes. This leaves sufficient space to add custom attachments. In case your application generates particularly large crash reports, consider to limit or avoid adding additional attachments in the SDK.\"))), mdx(\"p\", null, \"Attachments persist for 30 days; if your total storage included in your quota is exceeded, attachments will not be stored. You can delete attachments or their containing events at any time. Deleting an attachment does not affect your quota - Sentry counts an attachment toward your quota as soon as it is stored.\"), mdx(\"p\", null, \"Learn more about how attachments impact your \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"/product/accounts/quotas/\"\n  }), \"quota\"), \".\"), mdx(PlatformSection, {\n    supported: [\"native\", \"javascript.electron\"],\n    mdxType: \"PlatformSection\"\n  }, mdx(\"markdown\", null, mdx(\"h2\", {\n    \"id\": \"crash-reports-and-privacy\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h2\"\n  }, {\n    \"href\": \"#crash-reports-and-privacy\",\n    \"aria-label\": \"crash reports and privacy permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"viewBox\": \"0 0 24 24\",\n    \"xmlns\": \"http://www.w3.org/2000/svg\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"d\": \"M10.879 6.05L15 1.93A5.001 5.001 0 0 1 22.071 9l-4.121 4.121a1 1 0 0 1-1.414-1.414l4.12-4.121a3 3 0 1 0-4.242-4.243l-4.121 4.121a1 1 0 1 1-1.414-1.414zm2.242 11.9L9 22.07A5 5 0 1 1 1.929 15l4.121-4.121a1 1 0 0 1 1.414 1.414l-4.12 4.121a3 3 0 1 0 4.242 4.243l4.121-4.121a1 1 0 1 1 1.414 1.414zm-8.364-.122l13.071-13.07a1 1 0 0 1 1.415 1.414L6.172 19.242a1 1 0 1 1-1.415-1.414z\",\n    \"fill\": \"currentColor\"\n  })))), \"Crash Reports and Privacy\"), mdx(\"p\", null, \"Crash reports may contain sensitive information about the target system, such as environment variables, local pathnames, or in-memory representations of input fields, including passwords. By default, Sentry only uses crash report files to create events and immediately drops them. All sensitive information is stripped from the resulting events.\"), mdx(\"p\", null, \"All other types of attachments, such as log files or screenshots, are stored for 30 days when sent to Sentry. Note that Sentry does not apply data scrubbing to attachments.\"), mdx(\"h3\", {\n    \"id\": \"enabling-crash-report-storage\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h3\"\n  }, {\n    \"href\": \"#enabling-crash-report-storage\",\n    \"aria-label\": \"enabling crash report storage permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"viewBox\": \"0 0 24 24\",\n    \"xmlns\": \"http://www.w3.org/2000/svg\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"d\": \"M10.879 6.05L15 1.93A5.001 5.001 0 0 1 22.071 9l-4.121 4.121a1 1 0 0 1-1.414-1.414l4.12-4.121a3 3 0 1 0-4.242-4.243l-4.121 4.121a1 1 0 1 1-1.414-1.414zm2.242 11.9L9 22.07A5 5 0 1 1 1.929 15l4.121-4.121a1 1 0 0 1 1.414 1.414l-4.12 4.121a3 3 0 1 0 4.242 4.243l4.121-4.121a1 1 0 1 1 1.414 1.414zm-8.364-.122l13.071-13.07a1 1 0 0 1 1.415 1.414L6.172 19.242a1 1 0 1 1-1.415-1.414z\",\n    \"fill\": \"currentColor\"\n  })))), \"Enabling Crash Report Storage\"), mdx(\"p\", null, \"You can enable \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"Store Native Crash Reports\"), \" in your organization's \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Security and Privacy Settings\"), \". By default, this setting is disabled. Determine the maximum number of crash reports that will be stored per issue; disabled, unlimited, or maximum per issue:\"), mdx(\"p\", null, mdx(\"span\", _extends({\n    parentName: \"p\"\n  }, {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"1200px\"\n    }\n  }), \"\\n      \", mdx(\"a\", _extends({\n    parentName: \"span\"\n  }, {\n    \"className\": \"gatsby-resp-image-link\",\n    \"href\": \"/static/afaf4b742511ca6c082871fa881a6712/37114/slide-bar-native-crashes.png\",\n    \"style\": {\n      \"display\": \"block\"\n    },\n    \"target\": \"_blank\",\n    \"rel\": \"noopener\"\n  }), \"\\n    \", mdx(\"span\", _extends({\n    parentName: \"a\"\n  }, {\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"24.333333333333332%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAFCAIAAADKYVtkAAAACXBIWXMAAAsSAAALEgHS3X78AAAAoElEQVQY021PAQ6DIAzk/+/c4pxToCIUWmSHLplLdlzIkXK91iyzswvNk02RRTTn8kM+mP+wFDHereSDd7SF2P1FK45WCJVa696foh3yJarMxYzDE5zGebg9hvuIFhwZXeBDb2cpUGhtzwx33S9AuCEXVr95u0KAEDC4heDEX04ZbK2+nilFTKInPuazjKguYj6W7Pc5KvKPLbrQK0RLlje7BiKoqNdViwAAAABJRU5ErkJggg==')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  })), \"\\n  \", mdx(\"img\", _extends({\n    parentName: \"a\"\n  }, {\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"Attachments Example\",\n    \"title\": \"Attachments Example\",\n    \"src\": \"/static/afaf4b742511ca6c082871fa881a6712/c1b63/slide-bar-native-crashes.png\",\n    \"srcSet\": [\"/static/afaf4b742511ca6c082871fa881a6712/5a46d/slide-bar-native-crashes.png 300w\", \"/static/afaf4b742511ca6c082871fa881a6712/0a47e/slide-bar-native-crashes.png 600w\", \"/static/afaf4b742511ca6c082871fa881a6712/c1b63/slide-bar-native-crashes.png 1200w\", \"/static/afaf4b742511ca6c082871fa881a6712/d61c2/slide-bar-native-crashes.png 1800w\", \"/static/afaf4b742511ca6c082871fa881a6712/37114/slide-bar-native-crashes.png 2300w\"],\n    \"sizes\": \"(max-width: 1200px) 100vw, 1200px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\"\n  })), \"\\n  \"), \"\\n    \")), mdx(\"p\", null, \"If you set a limit per issue, as in the example above, a limit of 10, Sentry will store the first 10 attachments associated with this issue, but drop any that follow. To make room for additional attachments, delete them. Sentry will then accept attachments until the limit is reached again.\"))), mdx(\"h3\", {\n    \"id\": \"access-to-attachments\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h3\"\n  }, {\n    \"href\": \"#access-to-attachments\",\n    \"aria-label\": \"access to attachments permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"viewBox\": \"0 0 24 24\",\n    \"xmlns\": \"http://www.w3.org/2000/svg\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"d\": \"M10.879 6.05L15 1.93A5.001 5.001 0 0 1 22.071 9l-4.121 4.121a1 1 0 0 1-1.414-1.414l4.12-4.121a3 3 0 1 0-4.242-4.243l-4.121 4.121a1 1 0 1 1-1.414-1.414zm2.242 11.9L9 22.07A5 5 0 1 1 1.929 15l4.121-4.121a1 1 0 0 1 1.414 1.414l-4.12 4.121a3 3 0 1 0 4.242 4.243l4.121-4.121a1 1 0 1 1 1.414 1.414zm-8.364-.122l13.071-13.07a1 1 0 0 1 1.415 1.414L6.172 19.242a1 1 0 1 1-1.415-1.414z\",\n    \"fill\": \"currentColor\"\n  })))), \"Access to Attachments\"), mdx(\"p\", null, \"To limit access to attachments, navigate to your organization's \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"General Settings\"), \", then select the \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"Attachments Access\"), \" dropdown to set appropriate access \\u2014 any member of your organization, the organization billing owner, member, admin, manager, or owner.\"), mdx(\"p\", null, mdx(\"span\", _extends({\n    parentName: \"p\"\n  }, {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"1200px\"\n    }\n  }), \"\\n      \", mdx(\"a\", _extends({\n    parentName: \"span\"\n  }, {\n    \"className\": \"gatsby-resp-image-link\",\n    \"href\": \"/static/e5eed0f45969af6d5f1031c84019463c/aa440/attachments-access.png\",\n    \"style\": {\n      \"display\": \"block\"\n    },\n    \"target\": \"_blank\",\n    \"rel\": \"noopener\"\n  }), \"\\n    \", mdx(\"span\", _extends({\n    parentName: \"a\"\n  }, {\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"38.99999999999999%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAAsSAAALEgHS3X78AAAA7UlEQVQY032Pa07DMBCEc//zgFQeBUQregh+oKqlAZTYjl/xxmuHcYqC1CBWo5Vl7Tc7W0mhRCuV7NB1Z1LKiRNzQs85xxTHPC6VU46RKyW0bDspACsFXBnT2d4HCgTekoPFuKjiC9hZ55z3zjNz+S37fqanFJmnIBdCFbhtJHaKRmplQh+IBgpFwxBjJGMETJaLcVWBQ09FgRAVHQSwgWLO6f2oV1evD3fH+5vDrPXtYXW9//q0MK1gcBbCzG/wgD9q8/z4ttueXjb1rN223jyd2sZj4Bdeihkp7F+xx/PAfzDu19oRTYdcqgx8AzpzzA4fk4SrAAAAAElFTkSuQmCC')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  })), \"\\n  \", mdx(\"img\", _extends({\n    parentName: \"a\"\n  }, {\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"Attachments Access\",\n    \"title\": \"Attachments Access\",\n    \"src\": \"/static/e5eed0f45969af6d5f1031c84019463c/c1b63/attachments-access.png\",\n    \"srcSet\": [\"/static/e5eed0f45969af6d5f1031c84019463c/5a46d/attachments-access.png 300w\", \"/static/e5eed0f45969af6d5f1031c84019463c/0a47e/attachments-access.png 600w\", \"/static/e5eed0f45969af6d5f1031c84019463c/c1b63/attachments-access.png 1200w\", \"/static/e5eed0f45969af6d5f1031c84019463c/aa440/attachments-access.png 1500w\"],\n    \"sizes\": \"(max-width: 1200px) 100vw, 1200px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\"\n  })), \"\\n  \"), \"\\n    \")), mdx(\"p\", null, \"By default, access is granted to all members when storage is enabled. If a member does not have access to the project, the ability to download an attachment is not available; the button will be greyed out in Sentry. The member may only view that an attachment is stored.\"), mdx(\"h2\", {\n    \"id\": \"viewing-attachments\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h2\"\n  }, {\n    \"href\": \"#viewing-attachments\",\n    \"aria-label\": \"viewing attachments permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"viewBox\": \"0 0 24 24\",\n    \"xmlns\": \"http://www.w3.org/2000/svg\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"d\": \"M10.879 6.05L15 1.93A5.001 5.001 0 0 1 22.071 9l-4.121 4.121a1 1 0 0 1-1.414-1.414l4.12-4.121a3 3 0 1 0-4.242-4.243l-4.121 4.121a1 1 0 1 1-1.414-1.414zm2.242 11.9L9 22.07A5 5 0 1 1 1.929 15l4.121-4.121a1 1 0 0 1 1.414 1.414l-4.12 4.121a3 3 0 1 0 4.242 4.243l4.121-4.121a1 1 0 1 1 1.414 1.414zm-8.364-.122l13.071-13.07a1 1 0 0 1 1.415 1.414L6.172 19.242a1 1 0 1 1-1.415-1.414z\",\n    \"fill\": \"currentColor\"\n  })))), \"Viewing Attachments\"), mdx(\"p\", null, \"Attachments display on the bottom of the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Issue Details\"), \" page for the event that is shown.\"), mdx(\"p\", null, mdx(\"span\", _extends({\n    parentName: \"p\"\n  }, {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"1200px\"\n    }\n  }), \"\\n      \", mdx(\"a\", _extends({\n    parentName: \"span\"\n  }, {\n    \"className\": \"gatsby-resp-image-link\",\n    \"href\": \"/static/d3ecec1a4c50802364efcf9d3460b123/aa440/attachments-access-denied.png\",\n    \"style\": {\n      \"display\": \"block\"\n    },\n    \"target\": \"_blank\",\n    \"rel\": \"noopener\"\n  }), \"\\n    \", mdx(\"span\", _extends({\n    parentName: \"a\"\n  }, {\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"15%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAADCAIAAAAcOLh5AAAACXBIWXMAAAsSAAALEgHS3X78AAAAc0lEQVQI132OwQ6CQAxE97/FRDi7HuRbhBMe5W/cpWMCbGm1YRPg5Esz6RwmM27hZRyneU7fv6iqaf/q26btuudjVWexEEKMAwAC7Alvs5ET50xGRMzW97o4nf31Vl4q771jZuCzH4EGECGtW/SAiOb+jR9UtqWzrbYxggAAAABJRU5ErkJggg==')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  })), \"\\n  \", mdx(\"img\", _extends({\n    parentName: \"a\"\n  }, {\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"Attachments Access Denied\",\n    \"title\": \"Attachments Access Denied\",\n    \"src\": \"/static/d3ecec1a4c50802364efcf9d3460b123/c1b63/attachments-access-denied.png\",\n    \"srcSet\": [\"/static/d3ecec1a4c50802364efcf9d3460b123/5a46d/attachments-access-denied.png 300w\", \"/static/d3ecec1a4c50802364efcf9d3460b123/0a47e/attachments-access-denied.png 600w\", \"/static/d3ecec1a4c50802364efcf9d3460b123/c1b63/attachments-access-denied.png 1200w\", \"/static/d3ecec1a4c50802364efcf9d3460b123/aa440/attachments-access-denied.png 1500w\"],\n    \"sizes\": \"(max-width: 1200px) 100vw, 1200px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\"\n  })), \"\\n  \"), \"\\n    \")), mdx(\"p\", null, \"Alternately, attachments also appear in the \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"Attachments\"), \" tab on the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Issue Details\"), \" page, where you can view the \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"Type\"), \" of attachment, as well as associated events. Click the Event ID to open the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Issue Details\"), \" of that specific event.\"), mdx(\"p\", null, mdx(\"span\", _extends({\n    parentName: \"p\"\n  }, {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"1200px\"\n    }\n  }), \"\\n      \", mdx(\"a\", _extends({\n    parentName: \"span\"\n  }, {\n    \"className\": \"gatsby-resp-image-link\",\n    \"href\": \"/static/417f0fbf2900c7e2769ffcffb93e25e4/aa440/attachments-list-example.png\",\n    \"style\": {\n      \"display\": \"block\"\n    },\n    \"target\": \"_blank\",\n    \"rel\": \"noopener\"\n  }), \"\\n    \", mdx(\"span\", _extends({\n    parentName: \"a\"\n  }, {\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"43.333333333333336%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAIAAAC9o5sfAAAACXBIWXMAAAsSAAALEgHS3X78AAABd0lEQVQoz01SWY7bMBTz/S9UoGdoMShmMEDbZLwmtqVItlZrd6nkpwIhPNgiH/mk5u+fyzKTdaHzfRW7NNoqZaw9ci4p5RiTc56uj+VOUEh1GOOs9Uoo50Iz35ZtE+tC2INTwthjo5QJocSupFQgA8fhvA8hJOej96nk8vu6crY3UmitjBRKKwuCkmaZ6W2CCw0JGDH6sObQ2uaSz/MsdWWp3GFdE3yEHyjXHTg854Yx7X0MAX3C8zvahref5Pu36eMX3TkXm4CjBieeehX/rRoYwF8cqoUPQ6fefpDuwkMp7indkJUiZwXbV8KW5UHpFlN5acEbpojhIQ6an2e28Nu1WclUzmboxr4dx37qhuXazpev+atbrYsvA845JIcSrsC7EEMS2urPj7TxSu67cRput/E+TKQb6bW9twMx1r/IyKykBlnr2hmjV/bQn++VfJ7NvsmNC3jbdsMwKq7pAxftc84pF9jed4nYkECN5PUp9H2UMubyD4RsAIwD8YFBAAAAAElFTkSuQmCC')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  })), \"\\n  \", mdx(\"img\", _extends({\n    parentName: \"a\"\n  }, {\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"Attachments List Example\",\n    \"title\": \"Attachments List Example\",\n    \"src\": \"/static/417f0fbf2900c7e2769ffcffb93e25e4/c1b63/attachments-list-example.png\",\n    \"srcSet\": [\"/static/417f0fbf2900c7e2769ffcffb93e25e4/5a46d/attachments-list-example.png 300w\", \"/static/417f0fbf2900c7e2769ffcffb93e25e4/0a47e/attachments-list-example.png 600w\", \"/static/417f0fbf2900c7e2769ffcffb93e25e4/c1b63/attachments-list-example.png 1200w\", \"/static/417f0fbf2900c7e2769ffcffb93e25e4/aa440/attachments-list-example.png 1500w\"],\n    \"sizes\": \"(max-width: 1200px) 100vw, 1200px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\"\n  })), \"\\n  \"), \"\\n    \")), mdx(PlatformSection, {\n    supported: [\"native\", \"javascript.electron\"],\n    mdxType: \"PlatformSection\"\n  }, mdx(\"markdown\", null, mdx(\"p\", null, \"If you chose to limit the number of crash reports per issue, you can show \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"Only Crash Reports\"), \". This removes all other attachments from the list, which can be useful if the issue has accumulated a large number of events.\"))));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#uploading-attachments","title":"Uploading Attachments"},{"url":"#crash-reports-and-privacy","title":"Crash Reports and Privacy","items":[{"url":"#enabling-crash-report-storage","title":"Enabling Crash Report Storage"},{"url":"#access-to-attachments","title":"Access to Attachments"}]},{"url":"#viewing-attachments","title":"Viewing Attachments"}]},"internal":{"type":"Mdx"}}}},"pageContext":{"excerpt":"Sentry can augment your crash reports by storing additional files alongside the event, such as log files, as attachments. Attachments allow the files within a crash to not only upload to Sentry, but also persist for further investigation. You can use a higher-level SDK for platforms with built-in support for native crashes, or generate and upload attachments using the API: Native C/C++ Electron Minidump endpoint To receive symbolicated stack traces, you have to upload debug information to Sentry. Unless the option to store crash reports is enabled, Sentry will use the crash reports only to create the event, then will drop the files. For more information, see  Debug Information Files . Uploading Attachments Sentry allows at most 100MB of attachments per event, including the crash report file (if applicable) Uploads exceeding this size are rejected with HTTP error  413 Payload Too Large  and the data is dropped immediately. To add larger or more files, consider secondary storage options. Usually, native crash reports range from a few kilobytes to a few megabytes. This leaves sufficient space to add custom attachments. In case your application generates particularly large crash reports, consider to limit or avoid adding additional attachments in the SDK. Attachments persist for 30 days; if your total storage included in your quota is exceeded, attachments will not be stored. You can delete attachments or their containing events at any time. Deleting an attachment does not affect your quota - Sentry counts an attachment toward your quota as soon as it is stored. Learn more about how attachments impact your  quota . Crash Reports and Privacy Crash reports may contain sensitive information about the target system, such as environment variables, local pathnames, or in-memory representations of input fields, including passwords. By default, Sentry only uses crash report files to create events and immediately drops them. All sensitive information is stripped from the resulting events. All other types of attachments, such as log files or screenshots, are stored for 30 days when sent to Sentry. Note that Sentry does not apply data scrubbing to attachments. Enabling Crash Report Storage You can enable  Store Native Crash Reports  in your organization's  Security and Privacy Settings . By default, this setting is disabled. Determine the maximum number of crash reports that will be stored per issue; disabled, unlimited, or maximum per issue: If you set a limit per issue, as in the example above, a limit of 10, Sentry will store the first 10 attachments associated with this issue, but drop any that follow. To make room for additional attachments, delete them. Sentry will then accept attachments until the limit is reached again. Access to Attachments To limit access to attachments, navigate to your organization's  General Settings , then select the  Attachments Access  dropdown to set appropriate access — any member of your organization, the organization billing owner, member, admin, manager, or owner. By default, access is granted to all members when storage is enabled. If a member does not have access to the project, the ability to download an attachment is not available; the button will be greyed out in Sentry. The member may only view that an attachment is stored. Viewing Attachments Attachments display on the bottom of the  Issue Details  page for the event that is shown. Alternately, attachments also appear in the  Attachments  tab on the  Issue Details  page, where you can view the  Type  of attachment, as well as associated events. Click the Event ID to open the  Issue Details  of that specific event. If you chose to limit the number of crash reports per issue, you can show  Only Crash Reports . This removes all other attachments from the list, which can be useful if the issue has accumulated a large number of events.","title":"Attachments","description":"Learn more about how Sentry can store additional files in the same request as event attachments.","notoc":true,"sidebar_order":100,"supported":["native","javascript"],"platform":{"name":"javascript","title":"JavaScript"},"guide":{"name":"react","title":"React"},"noindex":true,"redirect_from":[],"id":"0602c5fe-edfd-5f39-8a55-1db56d26ff61"}},"staticQueryHashes":["1218203755","1222113826","1222113826","1766336459","2158593473","2404336828","2472290386","2764967025","3818502851","4015007367","4192517163","4264099332","518019976"]}