upload base64

This commit is contained in:
2025-11-10 10:34:30 +08:00
parent 7b0d4e5d30
commit 401f8f13a2
3 changed files with 40 additions and 132 deletions

View File

@@ -1,2 +1,5 @@
IMAGE_BASE64=$(base64 image.png | tr -d '\n')
curl -X POST http://localhost:3000/api/pengaduan/upload-base64 \
-F file=@package.json
-H "Content-Type: application/json" \
-d "{\"file\": \"$IMAGE_BASE64\"}"