Skip to content

Commit

Permalink
delete file type check
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Dec 29, 2023
1 parent 75b049f commit 946bce8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions iqshell/storage/object/upload/operations/batch_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,6 @@ func (up *UploadConfig) Check() *data.CodeError {
}
}

if up.FileType < 0 || up.FileType > 3 {
return data.NewEmptyError().AppendDesc("wrong Filetype, It should be one of 0, 1, 2, 3")
}

if up.Policy != nil {
//if (up.Policy.CallbackURL == "" && up.Policy.CallbackHost != "") ||
// (up.Policy.CallbackURL != "" && up.Policy.CallbackHost == "") {
Expand Down

0 comments on commit 946bce8

Please sign in to comment.