김재형

Add content-disposition header to uploaded objects

...@@ -411,6 +411,7 @@ class ItemViewSet(viewsets.ViewSet): ...@@ -411,6 +411,7 @@ class ItemViewSet(viewsets.ViewSet):
411 { 411 {
412 "acl": "private", 412 "acl": "private",
413 "Content-Type": file_type, 413 "Content-Type": file_type,
414 + "Content-Disposition": "attachment",
414 'region': AWS_REGION, 415 'region': AWS_REGION,
415 'x-amz-algorithm': 'AWS4-HMAC-SHA256', 416 'x-amz-algorithm': 'AWS4-HMAC-SHA256',
416 'x-amz-date': date_long 417 'x-amz-date': date_long
...@@ -418,6 +419,7 @@ class ItemViewSet(viewsets.ViewSet): ...@@ -418,6 +419,7 @@ class ItemViewSet(viewsets.ViewSet):
418 [ 419 [
419 {"acl": "private"}, 420 {"acl": "private"},
420 {"Content-Type": file_type}, 421 {"Content-Type": file_type},
422 + {"Content-Disposition": "attachment"},
421 {'x-amz-algorithm': 'AWS4-HMAC-SHA256'}, 423 {'x-amz-algorithm': 'AWS4-HMAC-SHA256'},
422 {'x-amz-date': date_long} 424 {'x-amz-date': date_long}
423 ], 425 ],
......