@abext/files 中文文档教程

发布于 4年前 浏览 20 更新于 3年前

Airboat Extension - Files

Examples and Usages

import '@abext/files';

Routes

  • POST /uploads

Configuration example:

{
  "extensions": {
    "files": {
      "s3ClientConfiguration": {
        "region":"us-east-1",
        "accessKeyId":"....",
        "secretAccessKey":"...."
      },
      "s3BucketName": "my-cool-projects",
      "validContentType":{
        "image/jpeg": ".jpg",
        "image/png": ".png",
        "image/gif": ".gif",
        "application/pdf": ".pdf",
        "application/x-gtar": ".tar.gz",
      },
      "keyPrefix":"..."
    }
  }
}

Airboat Extension - Files

Examples and Usages

import '@abext/files';

Routes

  • POST /uploads

Configuration example:

{
  "extensions": {
    "files": {
      "s3ClientConfiguration": {
        "region":"us-east-1",
        "accessKeyId":"....",
        "secretAccessKey":"...."
      },
      "s3BucketName": "my-cool-projects",
      "validContentType":{
        "image/jpeg": ".jpg",
        "image/png": ".png",
        "image/gif": ".gif",
        "application/pdf": ".pdf",
        "application/x-gtar": ".tar.gz",
      },
      "keyPrefix":"..."
    }
  }
}
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文