Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
C_Team_KhuDrive
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
김재형
2020-06-17 15:43:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f4d15a061c2cf471ce45dd456a5c49fe03ddd24
9f4d15a0
1 parent
8792047c
Add content-disposition header to uploaded objects
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
backend/api/views.py
backend/api/views.py
View file @
9f4d15a
...
...
@@ -411,6 +411,7 @@ class ItemViewSet(viewsets.ViewSet):
{
"acl"
:
"private"
,
"Content-Type"
:
file_type
,
"Content-Disposition"
:
"attachment"
,
'region'
:
AWS_REGION
,
'x-amz-algorithm'
:
'AWS4-HMAC-SHA256'
,
'x-amz-date'
:
date_long
...
...
@@ -418,6 +419,7 @@ class ItemViewSet(viewsets.ViewSet):
[
{
"acl"
:
"private"
},
{
"Content-Type"
:
file_type
},
{
"Content-Disposition"
:
"attachment"
},
{
'x-amz-algorithm'
:
'AWS4-HMAC-SHA256'
},
{
'x-amz-date'
:
date_long
}
],
...
...
Please
register
or
login
to post a comment