add new user set avatar and profile background
This commit is contained in:
@@ -43,7 +43,7 @@ type GetKeyOptions struct {
|
||||
UploadType DataType
|
||||
}
|
||||
|
||||
func GetKey(opts GetKeyOptions) string {
|
||||
func GetKey(opts *GetKeyOptions) string {
|
||||
extensions, err := mime.ExtensionsByType(opts.MimeType)
|
||||
if err != nil || len(extensions) == 0 {
|
||||
extensions = []string{".unknown"}
|
||||
|
||||
Reference in New Issue
Block a user