Title: ERROR Error: [object Object] while uploading images in storage · Issue #1439 · angular/angularfire · GitHub
Open Graph Title: ERROR Error: [object Object] while uploading images in storage · Issue #1439 · angular/angularfire
X Title: ERROR Error: [object Object] while uploading images in storage · Issue #1439 · angular/angularfire
Description: Hi Team, I am developing one application and I have used ionic 3.9.2 and I am trying to upload an image in firebase storage and the angularfire 2 version is 5.0.0-rc.4 and firebase 4.8.0. I tried to get the image from Camera const camera...
Open Graph Description: Hi Team, I am developing one application and I have used ionic 3.9.2 and I am trying to upload an image in firebase storage and the angularfire 2 version is 5.0.0-rc.4 and firebase 4.8.0. I tried t...
X Description: Hi Team, I am developing one application and I have used ionic 3.9.2 and I am trying to upload an image in firebase storage and the angularfire 2 version is 5.0.0-rc.4 and firebase 4.8.0. I tried t...
Opengraph URL: https://github.com/angular/angularfire/issues/1439
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ERROR Error: [object Object] while uploading images in storage ","articleBody":"Hi Team,\r\n\r\nI am developing one application and I have used ionic 3.9.2 and I am trying to upload an image in firebase storage and the angularfire 2 version is 5.0.0-rc.4 and firebase 4.8.0.\r\n\r\nI tried to get the image from Camera\r\n\r\n```\r\n const cameraOptions: CameraOptions = {\r\n quality: 50,\r\n destinationType: this.camera.DestinationType.DATA_URL,\r\n encodingType: this.camera.EncodingType.JPEG,\r\n mediaType: this.camera.MediaType.PICTURE,\r\n };\r\n\r\n this.camera.getPicture(cameraOptions).then((imageData) => {\r\n // imageData is either a base64 encoded string or a file URI\r\n // If it's base64:\r\n this.captureDataUrl = 'data:image/jpeg;base64,' + imageData;\r\n }, (err) => {\r\n // Handle error\r\n });\r\n```\r\nAnd then uploading the image in firebase storage\r\n```\r\n\r\nimport * as firebase from 'firebase';\r\n let storageRef = firebase.storage().ref();\r\n // Create a timestamp as filename\r\n const filename = Math.floor(Date.now() / 1000);\r\n\r\n // Create a reference to 'images/todays-date.jpg'\r\n const imageRef = storageRef.child(`myname/${filename}.jpg`);\r\n\r\n imageRef.putString(this.captureDataUrl, firebase.storage.StringFormat.DATA_URL).then((snapshot)=> {\r\n // Do something here when the data is succesfully uploaded!\r\n });\r\n\r\n```\r\nI am getting an error as \r\n```\r\nabc.html:217 ERROR Error: [object Object]\r\n at viewWrappedDebugError (vendor.js:9858)\r\n at callWithDebugContext (vendor.js:15104)\r\n at Object.debugHandleEvent [as handleEvent] (vendor.js:14681)\r\n at dispatchEvent (vendor.js:10058)\r\n at vendor.js:10672\r\n at HTMLButtonElement.\u003canonymous> (vendor.js:40181)\r\n at t.invokeTask (polyfills.js:3)\r\n at Object.onInvokeTask (vendor.js:4974)\r\n at t.invokeTask (polyfills.js:3)\r\n at r.runTask (polyfills.js:3)\r\n```","author":{"url":"https://github.com/anup5708","@type":"Person","name":"anup5708"},"datePublished":"2018-01-24T14:02:00Z","url":"https://github.com/angular/angularfire/issues/1439"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:3d4aeb78-f93d-b54f-8f33-13dbd7ce26f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 802E:A20F9:119E10B:176A6D9:6B0114D5 |
| html-safe-nonce | 32f67640db9b5f0c1dd56f17eb4ee4c3903d27825369c2043f2a9c2eb1c3ea61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDJFOkEyMEY5OjExOUUxMEI6MTc2QTZEOTo2QjAxMTRENSIsInZpc2l0b3JfaWQiOiIxNTgyOTk1MjE3NjEzNjU3MzAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a9a2a85b09f9fc2bb2fb525f82c0604aa121cb6682b51ea5418e03393b85886b |
| hovercard-subject-tag | issue:291219516 |
| 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/angular/angularfire/1439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a7c269f0361eb97d57346addb2f6e300a5e34d4dea244b662c321ecedd8e8b2b/angular/angularfire/issues/1439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a7c269f0361eb97d57346addb2f6e300a5e34d4dea244b662c321ecedd8e8b2b/angular/angularfire/issues/1439 |
| og:image:alt | Hi Team, I am developing one application and I have used ionic 3.9.2 and I am trying to upload an image in firebase storage and the angularfire 2 version is 5.0.0-rc.4 and firebase 4.8.0. I tried t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anup5708 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width