Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
F
Falcon
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Walter Huang
  • Falcon
  • Merge Requests
  • !3

Open
Opened Jan 13, 2026 by Haohao Jiang@haohao.jiang 
  • Report abuse
Report abuse

feat: add aws s3 client

AWS S3 配置

使用 S3 文件上传功能,需要设置以下环境变量:

AWS_REGION=ap-northeast-1
AWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_S3_BUCKET_NAME=your_bucket_name

使用示例

import { uploadFileFromEnv } from './src/clients/s3';

const key = await uploadFileFromEnv(
  '/path/to/local/file.pdf',
  'uploads/file.pdf',
  { contentType: 'application/pdf', acl: 'private' }
);

S3 bucket

s3://uploads-uat.strikinglycdn.com/ai_site/check-ai-templates/

Edited Jan 13, 2026 by Haohao Jiang
×

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b feat-upload-file-to-s3 origin/feat-upload-file-to-s3

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git checkout develop
git merge --no-ff feat-upload-file-to-s3

Step 4. Push the result of the merge to GitLab

git push origin develop

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 0
  • Commits 2
  • Changes 4
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Haohao Jiang @haohao.jiang

    changed the description

    Jan 13, 2026

    changed the description

    changed the description
    Toggle commit list
  • Haohao Jiang @haohao.jiang

    added 1 commit

    • 2d513d73 - feat: add aws s3 client

    Compare with previous version

    Jan 13, 2026

    added 1 commit

    • 2d513d73 - feat: add aws s3 client

    Compare with previous version

    added 1 commit <ul><li>2d513d73 - feat: add aws s3 client</li></ul> [Compare with previous version](https://cd.i.strikingly.com/walter.huang/Falcon/merge_requests/3/diffs?diff_id=112698&start_sha=ed309b7ad785fcea5a057df882aee45cc7e0e783)
    Toggle commit list
  • Haohao Jiang @haohao.jiang

    changed the description

    Jan 13, 2026

    changed the description

    changed the description
    Toggle commit list
  • Haohao Jiang @haohao.jiang

    added 1 commit

    • 8781869c - feat: add aws s3 client

    Compare with previous version

    Jan 14, 2026

    added 1 commit

    • 8781869c - feat: add aws s3 client

    Compare with previous version

    added 1 commit <ul><li>8781869c - feat: add aws s3 client</li></ul> [Compare with previous version](https://cd.i.strikingly.com/walter.huang/Falcon/merge_requests/3/diffs?diff_id=112704&start_sha=2d513d732496a389e6194e679afb7a5f3ea786d8)
    Toggle commit list
  • Haohao Jiang @haohao.jiang

    added 1 commit

    • a842861c - fix: rename upload method name

    Compare with previous version

    Jan 14, 2026

    added 1 commit

    • a842861c - fix: rename upload method name

    Compare with previous version

    added 1 commit <ul><li>a842861c - fix: rename upload method name</li></ul> [Compare with previous version](https://cd.i.strikingly.com/walter.huang/Falcon/merge_requests/3/diffs?diff_id=112707&start_sha=8781869ca168e0cc2d9c18932b7d047683105453)
    Toggle commit list
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: walter.huang/Falcon!3