انتقل إلى المحتوى الرئيسي

Upload File

The "Upload File" API allows users to securely upload files to a server. This feature is essential for various applications, including document management, media storage, and more.

  • Endpoint: api/customer/upload

  • Http Method: POST

  • Request Content-Type: multipart/form-data

  • Request Body:

    • file: The file to be uploaded.
  • Success Response:

KeyTypeDescription
filePathstringThe url to the uploaded file.
filenamestringThe name of the uploaded file.
{
"code": 200,
"message": "Success",
"data": {
"filePath": "https://docapi.supercommerce.io/storage/uploads/polygons-1694090454.png",
"filename": "polygons-1694090454.png"
},
"meta": []
}
معلومات

Check the following section to learn more about the Upload File API Reference