Skip to content

Commit

Permalink
fix: fix download expiration time
Browse files Browse the repository at this point in the history
  • Loading branch information
whdalsrnt committed Sep 9, 2024
1 parent 508816a commit d891402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaceone/file_manager/connector/aws_s3_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_upload_url(self, file_id, file_name):
def get_download_url(self, file_id, file_name):
object_name = self._generate_object_name(file_id, file_name)
response = self.client.generate_presigned_url(
"get_object", Params={"Bucket": self.bucket_name, "Key": object_name}
"get_object", Params={"Bucket": self.bucket_name, "Key": object_name}, ExpiresIn=86400
)

return response
Expand Down

0 comments on commit d891402

Please sign in to comment.