We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c57a88d commit c901ba5Copy full SHA for c901ba5
main.py
@@ -17,6 +17,10 @@
17
USER_ACCESS_TOKEN = "<access_token>"
18
# The maximum allowable size for an individual file, specified in megabytes
19
MAX_FILE_SIZE_MB = 40
20
+# A dictionary containing upload options for the Zipline API.
21
+# For detailed information on available options, refer to the official documentation:
22
+# https://zipline.diced.sh/docs/guides/upload-options
23
+UPLOAD_OPTIONS = {"Format": "RANDOM", "Embed": "false"}
24
25
26
def validate_file(path):
@@ -82,7 +86,7 @@ def upload_file(self, event):
82
86
if not self.handle_array(event):
83
87
return
84
88
85
- headers = {"Authorization": f"{USER_ACCESS_TOKEN}"}
89
+ headers = {"Authorization": USER_ACCESS_TOKEN, **UPLOAD_OPTIONS}
90
files = {
91
"file": (
92
basename(event.src_path),
0 commit comments