feat: complete Kra admin backend migration
This commit is contained in:
@@ -69,9 +69,6 @@ func (s *s3Storage) unkey(key string) string {
|
||||
func (s *s3Storage) file(key string, size int64) *biz.StoredFile {
|
||||
name := s.unkey(key)
|
||||
rawURL := s.baseURL + "/" + key
|
||||
if s.baseURL == "" {
|
||||
rawURL = key
|
||||
}
|
||||
return &biz.StoredFile{Name: path.Base(name), Path: name, URL: rawURL, Size: size}
|
||||
}
|
||||
func (s *s3Storage) Put(ctx context.Context, name string, reader io.Reader) (*biz.StoredFile, error) {
|
||||
|
||||
Reference in New Issue
Block a user