Body

  • file string(binary)
  • email string
  • store boolean
  • source string

    Values are transfer, consignment, or public.

Responses

  • 200

    File is upload with success

    Hide response attributes Show response attributes object
    • success boolean

      Default value is true.

    • body object
      Hide body attributes Show body attributes object
      • fileId string
      • containerId string
      • mime string
      • size string
      • scan boolean
      • store boolean

        If file need to be store or not

      • originalname string
      • checksum string

        Checksum of file

      • sync string

        If file is sync with storage disk

      • public boolean

        Default value is false.

      • directLink string
  • 422

    Missing required body parameters

    Hide response attributes Show response attributes object
    • success boolean Required

      If request is succeed

      Default value is false.

    • message string Required

      A human readable error message

    • context string Required

      Context of error

  • 500

    Unexpected error

    Hide response attributes Show response attributes object
    • success boolean Required

      If request is succeed

      Default value is false.

    • message string Required

      A human readable error message

    • context string Required

      Context of error

POST /upload
curl \
 -X POST https://storage.cloud-factory.fr/upload \
 -H "x-public-key: $API_KEY" \
 -H "Content-Type: multipart/form-data" \
 -F "file=@file" \
 -F "email=string" \
 -F "store=true" \
 -F "source=public"
Request example
{
  "file": "@file",
  "email": "string",
  "store": true,
  "source": "public"
}
Request examples
{
  "file": "@file",
  "email": "string",
  "store": true,
  "source": "public"
}
Response examples (200)
{
  "success": true,
  "body": {
    "fileId": "string",
    "containerId": "string",
    "mime": "string",
    "size": "string",
    "scan": true,
    "store": true,
    "originalname": "string",
    "checksum": "string",
    "sync": "string",
    "public": false,
    "directLink": "string"
  }
}
Response examples (200)
{
  "success": true,
  "body": {
    "fileId": "string",
    "containerId": "string",
    "mime": "string",
    "size": "string",
    "scan": true,
    "store": true,
    "originalname": "string",
    "checksum": "string",
    "sync": "string",
    "public": false,
    "directLink": "string"
  }
}
Response examples (422)
{
  "success": false,
  "message": "string",
  "context": "string"
}
Response examples (422)
{
  "success": false,
  "message": "string",
  "context": "string"
}
Response examples (500)
{
  "success": false,
  "message": "string",
  "context": "string"
}
Response examples (500)
{
  "success": false,
  "message": "string",
  "context": "string"
}