Skip to content

Commit

Permalink
mod: removed PresignUrl Expiry validation logic | would be handled by…
Browse files Browse the repository at this point in the history
… nitric server
  • Loading branch information
denilbhatt0814 committed Jun 11, 2024
1 parent 5e25222 commit 07157bf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api/storage/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ func (p PresignUrlOptions) isValid() error {
return fmt.Errorf("invalid mode: %d", p.Mode)
}

if p.Expiry > 604800 {
return fmt.Errorf("invalid expiry, cannot exceed 7 days: %d", p.Expiry)
}

return nil
}

Expand Down

0 comments on commit 07157bf

Please sign in to comment.