{"action":"created","issue":{"url":"https://api.github.com/repos/quasarframework/quasar/issues/2212","repository_url":"https://api.github.com/repos/quasarframework/quasar","labels_url":"https://api.github.com/repos/quasarframework/quasar/issues/2212/labels{/name}","comments_url":"https://api.github.com/repos/quasarframework/quasar/issues/2212/comments","events_url":"https://api.github.com/repos/quasarframework/quasar/issues/2212/events","html_url":"https://github.com/quasarframework/quasar/issues/2212","id":336311765,"node_id":"MDU6SXNzdWUzMzYzMTE3NjU=","number":2212,"title":"Documentation: q-uploader additional fields. Format is not clear. (may be a bug in fact)","user":{"login":"geoidesic","id":4637995,"node_id":"MDQ6VXNlcjQ2Mzc5OTU=","avatar_url":"https://avatars1.githubusercontent.com/u/4637995?v=4","gravatar_id":"","url":"https://api.github.com/users/geoidesic","html_url":"https://github.com/geoidesic","followers_url":"https://api.github.com/users/geoidesic/followers","following_url":"https://api.github.com/users/geoidesic/following{/other_user}","gists_url":"https://api.github.com/users/geoidesic/gists{/gist_id}","starred_url":"https://api.github.com/users/geoidesic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoidesic/subscriptions","organizations_url":"https://api.github.com/users/geoidesic/orgs","repos_url":"https://api.github.com/users/geoidesic/repos","events_url":"https://api.github.com/users/geoidesic/events{/privacy}","received_events_url":"https://api.github.com/users/geoidesic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-27T16:58:44Z","updated_at":"2018-06-27T18:57:37Z","closed_at":null,"author_association":"NONE","body":"https://quasar-framework.org/components/uploader.html#Vue-Properties\r\n\r\nSays: \"Additional fields to send along the upload request. Useful for authentication and so on. Array of Objects containing name and value props.\"\r\n\r\nThis isn't really clear to a newbie. Not even to me and I've been using Quasar for more than a year. An example showing the declarative formatting of name / value props would help.\r\n\r\nAlso having searched through the quasar code there's absolutely no reference to 'additional-fields', so I'm not sure where this is implemented and thus cannot get my answer from the source. Also couldn't find anything in the Vue docs. So it's a grand mystery.\r\n\r\nI should add that what I'm trying to do is solve an error where the upload is failing because I haven't sent an authentication token along with the POST request. From the docs it sounds like this would be the place for it but it's not clear how.\r\n\r\nI tried it like this:\r\n\r\n```\r\n<q-uploader\r\n            ref=\"uploader\"\r\n            :url=\"url\"\r\n            @add=\"fileDump\"\r\n            multiple\r\n            auto-expand\r\n            :addFileFactory=\"addFileFactory\"\r\n            :additional-fields=\"additionalFields\"\r\n          ></q-uploader>\r\n```\r\n```\r\ndata() {\r\n      return {\r\n        // path: []\r\n        url: 'http://192.168.33.10:8080/api/upload_item_attachment/1',\r\n        files: [],\r\n        additionalFields: [{\r\n        token: this.token}]\r\n      }\r\n  },\r\n```\r\n... but I can see that there's nothing being added to the request headers. So actually I think this may be a bug."},"comment":{"url":"https://api.github.com/repos/quasarframework/quasar/issues/comments/400792922","html_url":"https://github.com/quasarframework/quasar/issues/2212#issuecomment-400792922","issue_url":"https://api.github.com/repos/quasarframework/quasar/issues/2212","id":400792922,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDc5MjkyMg==","user":{"login":"geoidesic","id":4637995,"node_id":"MDQ6VXNlcjQ2Mzc5OTU=","avatar_url":"https://avatars1.githubusercontent.com/u/4637995?v=4","gravatar_id":"","url":"https://api.github.com/users/geoidesic","html_url":"https://github.com/geoidesic","followers_url":"https://api.github.com/users/geoidesic/followers","following_url":"https://api.github.com/users/geoidesic/following{/other_user}","gists_url":"https://api.github.com/users/geoidesic/gists{/gist_id}","starred_url":"https://api.github.com/users/geoidesic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoidesic/subscriptions","organizations_url":"https://api.github.com/users/geoidesic/orgs","repos_url":"https://api.github.com/users/geoidesic/repos","events_url":"https://api.github.com/users/geoidesic/events{/privacy}","received_events_url":"https://api.github.com/users/geoidesic/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T18:57:37Z","updated_at":"2018-06-27T18:57:37Z","author_association":"NONE","body":"Ok so you mean like this?:\r\n\r\n```\r\n<q-uploader\r\n            ref=\"uploader\"\r\n            :url=\"url\"\r\n            @add=\"fileDump\"\r\n            multiple\r\n            auto-expand\r\n            :addFileFactory=\"addFileFactory\"\r\n            :additional-fields=\"[{name: 'name', value: 'value'}]\"\r\n          ></q-uploader>\r\n```"}}
{"actor":{"display_login":"geoidesic"}}