Skip to content
created by Aha00aAha00a at 2026-06-10
last modified by Aha00aAha00a at 2026-08-23
revision: 2

MacroAttachment

S3에 업로드된 파일을 페이지에 첨부합니다.

이미지 파일(png, jpg, gif 등)은 <img> 태그로, 그 외 파일은 다운로드 링크로 렌더링합니다.

1. 사용법

[[Attachment(파일명)]] [[Attachment(파일명, 너비)]]
[[Attachment(example.png)]]
[[Attachment(example.png, 200px)]]
[[Attachment(document.pdf)]]

여기에 살아 있는 미리보기(WikiSyntaxPreview)를 두지 않는 이유: 이 매크로는 그 페이지에 실제로 올린 첨부가 있어야 그려집니다. 없는 파일로 미리보기를 만들면 페이지를 볼 때마다 깨진 이미지가 뜨고, 만료 전의 presigned URL 을 크롤러가 물고 다니며 S3 조회 실패를 계속 남깁니다 — 2026-08-23 CloudTrail 에서 닷새간 그런 실패 395건을 세고 나서 문서 예시들을 이 모양으로 바꿨습니다.

2. 경로 규칙

  • 파일명 → Attachment/{siteSeq}/{페이지명}/{파일명}
  • clipboard/파일명 → Attachment/{siteSeq}/{페이지명}/clipboard/{파일명}
  • Attachment/... 로 시작하면 그대로 사용

3. 지원 이미지 형식

png, jpg, jpeg, gif, webp, svg, bmp, avif, tiff, tif, ico

4. See Also

4.2. Similar Pages

Similar pages by cosine similarity. Words after page name are term frequency.

  • 37.53% Dev Attachment s3(1:60), attachment(9:42), url(1:25), seq(2:10), presigned(1:11), site(2:9), jpg(2:8), 파일명(6:3), 파일(1:8), clipboard(2:6)

4.3. Adjacent Pages

Control
≤ 32
all
1.0x
1.0x
80
-120
ON
Metrics
Nodes(visible/total)0/0
Links(visible/total)0/0
Avg degree0.00
Depth coverage0
Queue(fetch/graph)0 / 0
Zoom(scale)1.00x
Ctrl/⌘ + Scroll: Zoom
Root 1-hop 2-hop+