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: github.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:07397bb8-2cc1-9558-efa5-208c959f3f9b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7FC:37DA20:72CF17:992362:697C275A |
| html-safe-nonce | d74a59047353a9194194bbea801b69b897fe8c0642b81e411dc2ccc9b2588f8c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0ZDOjM3REEyMDo3MkNGMTc6OTkyMzYyOjY5N0MyNzVBIiwidmlzaXRvcl9pZCI6IjYyNjg0ODQwMzg0NzQ2MDY0MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 138c45ee11675d26c25dfe42db513b838f7ba0d4555c604e0bbc5894be8b29a3 |
| 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 | da4f0ee56809799586f8ee546b27f94fe9b5893edfbf87732e82be45be013b52 |
| 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 | 787d8d274e314f52ce6d846c7581f9476d8dc736 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width