# 圖片上傳 :::info 2024/02/06 發佈 ::: **圖片上傳** #### 網址 https://{domain}/api/v1/file/store #### Http Method FORM POST #### HTTP Header accept-language : language code apikey : apk key #### HTTP Request Body 傳入參數 |欄位名稱|必填|型態|欄位|備註| | ------------ | :-----------: |:-----------: |------------ |------------ | |file |Y |FILE |檔案 |file | |from |Y |string | 來自哪裡| app| #### HTTP Response 回傳參數 |Name|Type|說明| | ------------ | ------------ |------------ | |status |boolen |狀態 | |code |string |Response Code | |message |string |說明 | |result |string |圖片資訊 | #### Request Header Authoriztion ```json { "accept-language" : "en", //or 'zh_tw' "apikey" : "api key string" } ``` #### Json Example Request Form Data ```json { "file": FILE, "from": "app", } ``` Response Json Success ```json { "status": true, "code": 200, "message": "新增資料成功", "result": { "id": 4, "response": "picture url" } } ``` Response Json Error ```json { "status": false, "message": "傳送參數有誤", "code": 400 } ```