feat: 에디터 이미지 = 서버 업로드(URL) + 업로드 안내 메시지
CI / build (push) Successful in 35s

- PC 에디터: 🖼 → 압축 → 서버 업로드 → 본문에 ![](/api/images/{id}) 삽입(base64 제거)
- Toast UI(웹/APK): addImageBlobHook 으로 동일하게 서버 업로드(base64 대체)
- 업로드 중/실패 안내 메시지 표시

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-07 19:17:44 +09:00
parent 0238e0b22f
commit bfba296b91
2 changed files with 50 additions and 13 deletions
+9
View File
@@ -26,6 +26,15 @@ export const boardApi = {
remove(id) {
return http.delete(`/board/posts/${id}`)
},
// 본문 인라인 이미지 업로드(서버 DB 저장) → { url } (예: /api/images/123)
uploadImage(blob) {
const fd = new FormData()
fd.append('image', blob, 'image.jpg')
return http.post('/board/images', fd, {
headers: { 'Content-Type': 'multipart/form-data' },
timeout: 30000,
})
},
tags() {
return http.get('/board/tags')
},