AlistGo / AlistGo/alist

功能请求:s3 前端上传

Offen
#8,028 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Go
Sterne
50.2k
Forks
7.9k
Ø Merge
7 T. 21 Std.
Gemergte PRs (30 T.)
6

Beschreibung

### Please make sure of the following things

- [x] I have read the [documentation](https://alist.nn.ci).
- [x] I'm sure there are no duplicate issues or discussions.
- [x] I'm sure this feature is not implemented.
- [x] I'm sure it's a reasonable and popular requirement.

### Description of the feature / 需求描述

s3 前端上传

### Suggested solution / 实现思路

生成预签名URL
```go
sess, err := session.NewSession(&aws.Config{
Endpoint: aws.String(""),
Credentials: credentials.NewStaticCredentials("SECRET_ACCESS_ID", "SECRET_ACCESS_KEY", ""),
Region: aws.String(""),
})

svc := s3.New(sess)

req, _ := svc.PutObjectRequest(&s3.PutObjectInput{
Bucket: aws.String(""),
Key: aws.String(""),
})
urlStr, err := req.Presign(15 * time.Minute)
```

实现的困难应该主要在前端

### Additional context / 附件

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.