File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ def __normalize_params(self):
3434 if k == 'File' :
3535 params [k ] = file_param .build (v )
3636 elif k == 'Files' :
37- params [k ] = map (file_param .build , v )
37+ for idx , val in enumerate (v ):
38+ key = '%s[%i]' % (k , idx )
39+ params [key ] = file_param .build (val )
3840 else :
3941 params [k ] = v
4042
Original file line number Diff line number Diff line change @@ -31,3 +31,9 @@ def test_upload_io(self):
3131 upload_io = convertapi .UploadIO (bytes_io , 'test.txt' )
3232 result = convertapi .convert ('pdf' , { 'File' : upload_io })
3333 assert result .conversion_cost > 0
34+
35+ def test_zip_files (self ):
36+ files = ['examples/files/test.docx' , 'examples/files/test.docx' ]
37+ result = convertapi .convert ('zip' , { 'Files' : files })
38+ print result .file .url
39+ assert result .conversion_cost > 0
You can’t perform that action at this time.
0 commit comments