Skip to content

Commit ae4974c

Browse files
authored
Set Content-Disposition header on data imports (#420)
1 parent 8abb676 commit ae4974c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

python/lib/sift_py/data_import/csv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def upload(
7575
with _ProgressFile(path, disable=not show_progress) as f:
7676
headers = {
7777
"Content-Encoding": content_encoding,
78+
"Content-Disposition": f'attachment; filename="{os.path.basename(path)}"',
7879
}
7980

8081
response = self._session.post(

python/lib/sift_py/data_import/parquet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def upload(
7575
with ProgressFile(path, disable=not show_progress) as f:
7676
headers = {
7777
"Content-Encoding": "application/octet-stream",
78+
"Content-Disposition": f'attachment; filename="{os.path.basename(path)}"',
7879
}
7980

8081
response = self._session.post(

0 commit comments

Comments
 (0)