- PC 에디터: 🖼 → 압축 → 서버 업로드 → 본문에  삽입(base64 제거)
- Toast UI(웹/APK): addImageBlobHook 으로 동일하게 서버 업로드(base64 대체)
- 업로드 중/실패 안내 메시지 표시
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user