Title: Adding a file to a custom field when creating a deal · Issue #52 · 2BAD/bitrix · GitHub
Open Graph Title: Adding a file to a custom field when creating a deal · Issue #52 · 2BAD/bitrix
X Title: Adding a file to a custom field when creating a deal · Issue #52 · 2BAD/bitrix
Description: I'm trying to add an image to a custom field when I create a deal, but I've been receiving the same HTTPError. I'm trying to execute the code below: const imgData = [{ fileData: [ "test-st.png", "iVBORw0KGgoAAAANSUh..." ] // fileData[1] ...
Open Graph Description: I'm trying to add an image to a custom field when I create a deal, but I've been receiving the same HTTPError. I'm trying to execute the code below: const imgData = [{ fileData: [ "test-st.png", "i...
X Description: I'm trying to add an image to a custom field when I create a deal, but I've been receiving the same HTTPError. I'm trying to execute the code below: const imgData = [{ fileData: [ "...
Opengraph URL: https://github.com/2BAD/bitrix/issues/52
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Adding a file to a custom field when creating a deal","articleBody":"I'm trying to add an image to a custom field when I create a deal, but I've been receiving the same HTTPError.\r\n\r\nI'm trying to execute the code below:\r\n\r\n\r\n```\r\nconst imgData = [{\r\n fileData: [ \"test-st.png\", \"iVBORw0KGgoAAAANSUh...\" ] // fileData[1] is a base64 str \r\n}]\r\n\r\nlet data = await bitrix.deals.create({\r\n fields: {\r\n TITLE: \"ST-TEST\",\r\n CATEGORY_ID: 18,\r\n UF_CRM_1659988440473: 4759,\r\n UF_CRM_1678981077892: imgData, \r\n },\r\n }, {\r\n REGISTER_SONET_EVENT: 'Y'\r\n})\r\n```\r\n\r\n\r\nThe full error is:\r\n\r\n```\r\n{\r\n \"name\": \"HTTPError\",\r\n \"timings\": {\r\n \"start\": 1684867744230,\r\n \"socket\": 1684867744231,\r\n \"lookup\": 1684867744255,\r\n \"connect\": 1684867744410,\r\n \"secureConnect\": 1684867744568,\r\n \"upload\": 1684867744568,\r\n \"response\": 1684867744880,\r\n \"end\": 1684867744881,\r\n \"phases\": {\r\n \"wait\": 1,\r\n \"dns\": 24,\r\n \"tcp\": 155,\r\n \"tls\": 158,\r\n \"request\": 0,\r\n \"firstByte\": 312,\r\n \"download\": 1,\r\n \"total\": 651\r\n }\r\n }\r\n}\r\n```\r\n\r\nWhat can I do to solve this?\r\n","author":{"url":"https://github.com/SparTT","@type":"Person","name":"SparTT"},"datePublished":"2023-05-23T20:52:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/52/bitrix/issues/52"}
| 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:bac97a72-bbb9-80c4-9fd6-133915bcb6e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1D4:1D1FAD:AE25E0:F24249:6A4BDC8A |
| html-safe-nonce | fff5f961191c011b24bb2c87025540b8d275fc6e48eb3c274d9c0dbc69ce92b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUQ0OjFEMUZBRDpBRTI1RTA6RjI0MjQ5OjZBNEJEQzhBIiwidmlzaXRvcl9pZCI6IjI5NjUxNTY3MDQ5Njc2MzAxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | afeaaca271ebcffc257e21fdf3ac572a06ce140141bae42ff8b725cf8a6e6c78 |
| hovercard-subject-tag | issue:1722770842 |
| 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/2BAD/bitrix/52/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a903e06e58f3bb54dbc6c4e22a57f1d7376ef9f44100b4192f8e2058c9be8b5e/2BAD/bitrix/issues/52 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a903e06e58f3bb54dbc6c4e22a57f1d7376ef9f44100b4192f8e2058c9be8b5e/2BAD/bitrix/issues/52 |
| og:image:alt | I'm trying to add an image to a custom field when I create a deal, but I've been receiving the same HTTPError. I'm trying to execute the code below: const imgData = [{ fileData: [ "test-st.png", "i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SparTT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9df996be9551ac02247d09a2f7f64ece66c35ca28885d346e98fdfda9cdaa37b |
| turbo-cache-control | no-preview |
| go-import | github.com/2BAD/bitrix git https://github.com/2BAD/bitrix.git |
| octolytics-dimension-user_id | 33135183 |
| octolytics-dimension-user_login | 2BAD |
| octolytics-dimension-repository_id | 152966360 |
| octolytics-dimension-repository_nwo | 2BAD/bitrix |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 152966360 |
| octolytics-dimension-repository_network_root_nwo | 2BAD/bitrix |
| 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 | 7242837c61fe4c8b774b83b9ee05b1881ba589f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width