Title: how to use url · Issue #10 · aadsm/JavaScript-ID3-Reader · GitHub
Open Graph Title: how to use url · Issue #10 · aadsm/JavaScript-ID3-Reader
X Title: how to use url · Issue #10 · aadsm/JavaScript-ID3-Reader
Description: hey there! I've been going over what your doing and im a bit confused as to what kind of data the ID3 class is expecting. for example, ive got a file input called "fileselect" which im manipulating through jquery: //functions that get ca...
Open Graph Description: hey there! I've been going over what your doing and im a bit confused as to what kind of data the ID3 class is expecting. for example, ive got a file input called "fileselect" which im manipulating...
X Description: hey there! I've been going over what your doing and im a bit confused as to what kind of data the ID3 class is expecting. for example, ive got a file input called "fileselect" which i...
Opengraph URL: https://github.com/aadsm/JavaScript-ID3-Reader/issues/10
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"how to use url","articleBody":"hey there! I've been going over what your doing and im a bit confused as to what kind of data the ID3 class is expecting.\n\nfor example, ive got a file input called \"fileselect\" which im manipulating through jquery:\n\n//functions that get called second\n\n```\nfunction getDataURL(file, callback){\n reader = new FileReader();\n reader.onload = function(){\n callback(reader.result)\n };\n reader.readAsDataURL(file)\n}\n\nfunction fileLoadCallback(file){console.log(file)}\n```\n\n// heres the jquery that gets called first\n\n```\njQuery(\"#fileselect\").change(function(){\n file = this.files[0]\n getDataURL(file, fileLoadCallback)\n\n\n})\n```\n\nand i was hoping to put the ID3 stuff into the callback for the onChange. However, im not sure what the ID3 class is expecting from a url (im testing all of this locally btw). i thought it would want the DataURL generated by readAsDataURL, however, when i give it that, nothing happens. btw the callback looks like this with ID3:\n\n```\nfunction fileLoadCallback(file){\n console.log(file)\n ID3.loadTags(file,function(){\n var tags = ID3.getAllTags(file);\n console.log(tags.artist)\n })\n}\n```\n\nSo what kind of URL is it expecting? \n","author":{"url":"https://github.com/mradfo21","@type":"Person","name":"mradfo21"},"datePublished":"2012-06-27T23:56:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/10/JavaScript-ID3-Reader/issues/10"}
| 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:b3f59573-c2b7-e72a-ff71-c4dede3f8d9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9AE:22F9:A7B3D5:D8870A:699175A5 |
| html-safe-nonce | 7036b47b87cd9357479ae5552caf34eb8739fc0ebef4c2029361d14ea6933cc3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUFFOjIyRjk6QTdCM0Q1OkQ4ODcwQTo2OTkxNzVBNSIsInZpc2l0b3JfaWQiOiI1MDYzNzY0NzM0MzU4MTU2NzA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1dbdcfb9dd1a10daf8a67835451391fd61f267e7d303e0ef066859f9825dac9b |
| hovercard-subject-tag | issue:5309723 |
| 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/aadsm/JavaScript-ID3-Reader/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a2acd612071a69436fe0ce9cbee6915de808185a8569f078681dea56cff7904/aadsm/JavaScript-ID3-Reader/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a2acd612071a69436fe0ce9cbee6915de808185a8569f078681dea56cff7904/aadsm/JavaScript-ID3-Reader/issues/10 |
| og:image:alt | hey there! I've been going over what your doing and im a bit confused as to what kind of data the ID3 class is expecting. for example, ive got a file input called "fileselect" which im manipulating... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mradfo21 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/aadsm/JavaScript-ID3-Reader git https://github.com/aadsm/JavaScript-ID3-Reader.git |
| octolytics-dimension-user_id | 78122 |
| octolytics-dimension-user_login | aadsm |
| octolytics-dimension-repository_id | 614697 |
| octolytics-dimension-repository_nwo | aadsm/JavaScript-ID3-Reader |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 614697 |
| octolytics-dimension-repository_network_root_nwo | aadsm/JavaScript-ID3-Reader |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width