Title: convert parameters override · Issue #32 · ConvertAPI/convertapi-library-python · GitHub
Open Graph Title: convert parameters override · Issue #32 · ConvertAPI/convertapi-library-python
X Title: convert parameters override · Issue #32 · ConvertAPI/convertapi-library-python
Description: When I try to setup the StoreFile parameter in the conversion method res = convertapi.convert('pdf', params={'File':
Open Graph Description: When I try to setup the StoreFile parameter in the conversion method res = convertapi.convert('pdf', params={'File':
X Description: When I try to setup the StoreFile parameter in the conversion method res = convertapi.convert('pdf', params={'File': <UploadIO object>, 'StoreFile': False}) the parame...
Opengraph URL: https://github.com/ConvertAPI/convertapi-library-python/issues/32
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"convert parameters override","articleBody":"When I try to setup the `StoreFile` parameter in the `conversion` method\r\n\r\n`res = convertapi.convert('pdf', params={'File': \u003cUploadIO object\u003e, 'StoreFile': False})`\r\n\r\nthe parameters normalization down below automatically overrides the `StoreFile` parameter from` False` to `True`, actually blocking the in-memory conversion\r\n\r\n```python\r\n\r\ndef __normalize_params(self):\r\n params = {}\r\n\r\n for k, v in self.params.items():\r\n if k == 'File':\r\n params[k] = file_param.build(v)\r\n elif k == 'Files':\r\n results = utils.map_in_parallel(file_param.build, v, convertapi.max_parallel_uploads)\r\n\r\n for idx, val in enumerate(results):\r\n key = '%s[%i]' % (k, idx)\r\n params[key] = val\r\n else:\r\n params[k] = v\r\n\r\n params.update(self.default_params) \u003c----\r\n\r\n return params\r\n```\r\n\r\n","author":{"url":"https://github.com/m4rio31","@type":"Person","name":"m4rio31"},"datePublished":"2023-01-24T15:11:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/32/convertapi-library-python/issues/32"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:17699e5c-11c7-8c9d-ec60-2041facc6b53 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A792:3452E5:8BA002:C4760F:697B817A |
| html-safe-nonce | 1efab9a61dd2b2461f16d9ef6250fe80218b3b8fc0d0cc9db9c82067d923ea0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzkyOjM0NTJFNTo4QkEwMDI6QzQ3NjBGOjY5N0I4MTdBIiwidmlzaXRvcl9pZCI6IjgyMDE4Njc4MzU5NjY0NTYxODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5a05fa98675ce1701c4dec75e0c13dc271614039c054b57fb02c8a54be0e56a3 |
| hovercard-subject-tag | issue:1555165206 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ConvertAPI/convertapi-library-python/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dbc5e0560775b4556f06ea7a8b65d32ae8555384ca141da3fd42ab6c871ab8d2/ConvertAPI/convertapi-library-python/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dbc5e0560775b4556f06ea7a8b65d32ae8555384ca141da3fd42ab6c871ab8d2/ConvertAPI/convertapi-library-python/issues/32 |
| og:image:alt | When I try to setup the StoreFile parameter in the conversion method res = convertapi.convert('pdf', params={'File': |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | m4rio31 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26ef504c9f5eb2ac26b53c0437f934bbe4c0464979d7386917bd32d9fe70fc7a |
| turbo-cache-control | no-preview |
| go-import | github.com/ConvertAPI/convertapi-library-python git https://github.com/ConvertAPI/convertapi-library-python.git |
| octolytics-dimension-user_id | 37071453 |
| octolytics-dimension-user_login | ConvertAPI |
| octolytics-dimension-repository_id | 132747126 |
| octolytics-dimension-repository_nwo | ConvertAPI/convertapi-library-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 132747126 |
| octolytics-dimension-repository_network_root_nwo | ConvertAPI/convertapi-library-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cea9b2b812b4d84ebc94c8a8bd97e2e99a2c0b48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width