Skip to content

Commit 2598a32

Browse files
authored
Merge pull request #10 from whdalsrnt/master
Change expiration time when downloading files
2 parents 508816a + 43ad86d commit 2598a32

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Category
2+
- [ ] New feature
3+
- [ ] Bug fix
4+
- [ ] Improvement
5+
- [ ] Refactor
6+
- [ ] etc
7+
8+
### Description
9+
10+
### Known issue

src/spaceone/file_manager/connector/aws_s3_connector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_upload_url(self, file_id, file_name):
5151
def get_download_url(self, file_id, file_name):
5252
object_name = self._generate_object_name(file_id, file_name)
5353
response = self.client.generate_presigned_url(
54-
"get_object", Params={"Bucket": self.bucket_name, "Key": object_name}
54+
"get_object", Params={"Bucket": self.bucket_name, "Key": object_name}, ExpiresIn=86400
5555
)
5656

5757
return response

0 commit comments

Comments
 (0)