File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 17
17
USER_ACCESS_TOKEN = "<access_token>"
18
18
# The maximum allowable size for an individual file, specified in megabytes
19
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" }
20
24
21
25
22
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 }
86
90
files = {
87
91
"file" : (
88
92
basename (event .src_path ),
You can’t perform that action at this time.
0 commit comments