-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
When I try to setup the StoreFile
parameter in the conversion
method
res = convertapi.convert('pdf', params={'File': <UploadIO object>, 'StoreFile': False})
the parameters normalization down below automatically overrides the StoreFile
parameter from False
to True
, actually blocking the in-memory conversion
def __normalize_params(self):
params = {}
for k, v in self.params.items():
if k == 'File':
params[k] = file_param.build(v)
elif k == 'Files':
results = utils.map_in_parallel(file_param.build, v, convertapi.max_parallel_uploads)
for idx, val in enumerate(results):
key = '%s[%i]' % (k, idx)
params[key] = val
else:
params[k] = v
params.update(self.default_params) <----
return params
Metadata
Metadata
Assignees
Labels
No labels