{"action":"created","issue":{"url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/issues/39","labels_url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/issues/39/comments","events_url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/issues/39/events","html_url":"https://github.com/tus/tus-resumable-upload-protocol/issues/39","id":45624018,"number":39,"title":"Describe how to provide metada","user":{"login":"qsorix","id":224864,"avatar_url":"https://avatars.githubusercontent.com/u/224864?v=3","gravatar_id":"","url":"https://api.github.com/users/qsorix","html_url":"https://github.com/qsorix","followers_url":"https://api.github.com/users/qsorix/followers","following_url":"https://api.github.com/users/qsorix/following{/other_user}","gists_url":"https://api.github.com/users/qsorix/gists{/gist_id}","starred_url":"https://api.github.com/users/qsorix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qsorix/subscriptions","organizations_url":"https://api.github.com/users/qsorix/orgs","repos_url":"https://api.github.com/users/qsorix/repos","events_url":"https://api.github.com/users/qsorix/events{/privacy}","received_events_url":"https://api.github.com/users/qsorix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/labels/extension","name":"extension","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/milestones/1","labels_url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/milestones/1/labels","id":888130,"number":1,"title":"1.0","description":"","creator":{"login":"Acconut","id":1375043,"avatar_url":"https://avatars.githubusercontent.com/u/1375043?v=3","gravatar_id":"","url":"https://api.github.com/users/Acconut","html_url":"https://github.com/Acconut","followers_url":"https://api.github.com/users/Acconut/followers","following_url":"https://api.github.com/users/Acconut/following{/other_user}","gists_url":"https://api.github.com/users/Acconut/gists{/gist_id}","starred_url":"https://api.github.com/users/Acconut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Acconut/subscriptions","organizations_url":"https://api.github.com/users/Acconut/orgs","repos_url":"https://api.github.com/users/Acconut/repos","events_url":"https://api.github.com/users/Acconut/events{/privacy}","received_events_url":"https://api.github.com/users/Acconut/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":23,"state":"open","created_at":"2014-12-02T15:53:38Z","updated_at":"2015-01-26T16:38:16Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2014-10-13T09:30:52Z","updated_at":"2015-01-26T16:38:16Z","closed_at":"2015-01-26T16:38:16Z","body":"This issue is to define section \"6.4. Metadata\" of the protocol, i.e. how to provide additional meta information when uploading files.\r\n\r\nI'm going to start with my use case. I think I need metadata to let a client specify what kind of file it is uploading, so that server can trigger appropriate processing. Let's say clients can upload two types of files: measurement data and logfiles.\r\n\r\nWhat do you think about including this in the file creation request, as POST data? E.g. ```filetype=measurements``` or ```filetype=logs```?\r\n\r\n```\r\nPOST /v1/files HTTP/1.1\r\nEntity-Length: 3000\r\nContent-Length: 21\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nfiletype=measurements\r\n```\r\nWhen using POST request's content to send metadata, there could be some conflicts in case protocol wanted to include some metadata as well, e.g. a checksum. In such case some naming convention should be used to avoid conflicts. E.g. keys of metadata defined in the protocol must start with a prefix \"tus-\". This means that users are free to pick any names they want, but namespace \"tus-*\" is reserved for future use by the protocol.\r\n\r\nYour thoughts?"},"comment":{"url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/issues/comments/71490813","html_url":"https://github.com/tus/tus-resumable-upload-protocol/issues/39#issuecomment-71490813","issue_url":"https://api.github.com/repos/tus/tus-resumable-upload-protocol/issues/39","id":71490813,"user":{"login":"Acconut","id":1375043,"avatar_url":"https://avatars.githubusercontent.com/u/1375043?v=3","gravatar_id":"","url":"https://api.github.com/users/Acconut","html_url":"https://github.com/Acconut","followers_url":"https://api.github.com/users/Acconut/followers","following_url":"https://api.github.com/users/Acconut/following{/other_user}","gists_url":"https://api.github.com/users/Acconut/gists{/gist_id}","starred_url":"https://api.github.com/users/Acconut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Acconut/subscriptions","organizations_url":"https://api.github.com/users/Acconut/orgs","repos_url":"https://api.github.com/users/Acconut/repos","events_url":"https://api.github.com/users/Acconut/events{/privacy}","received_events_url":"https://api.github.com/users/Acconut/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T16:38:16Z","updated_at":"2015-01-26T16:38:16Z","body":"Merged #47."}}