{"action":"created","issue":{"url":"https://api.github.com/repos/tus/tus-node-server/issues/30","repository_url":"https://api.github.com/repos/tus/tus-node-server","labels_url":"https://api.github.com/repos/tus/tus-node-server/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/tus/tus-node-server/issues/30/comments","events_url":"https://api.github.com/repos/tus/tus-node-server/issues/30/events","html_url":"https://github.com/tus/tus-node-server/pull/30","id":155957743,"number":30,"title":"Custom file names","user":{"login":"js3692","id":14022304,"avatar_url":"https://avatars.githubusercontent.com/u/14022304?v=3","gravatar_id":"","url":"https://api.github.com/users/js3692","html_url":"https://github.com/js3692","followers_url":"https://api.github.com/users/js3692/followers","following_url":"https://api.github.com/users/js3692/following{/other_user}","gists_url":"https://api.github.com/users/js3692/gists{/gist_id}","starred_url":"https://api.github.com/users/js3692/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js3692/subscriptions","organizations_url":"https://api.github.com/users/js3692/orgs","repos_url":"https://api.github.com/users/js3692/repos","events_url":"https://api.github.com/users/js3692/events{/privacy}","received_events_url":"https://api.github.com/users/js3692/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-20T13:00:20Z","updated_at":"2016-05-20T13:04:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tus/tus-node-server/pulls/30","html_url":"https://github.com/tus/tus-node-server/pull/30","diff_url":"https://github.com/tus/tus-node-server/pull/30.diff","patch_url":"https://github.com/tus/tus-node-server/pull/30.patch"},"body":"User can now provide a hashing function to set a custom file name for each upload. When the hashing function is not provided, it defaults to a random `Uid`.\r\n\r\nExample:\r\n```javascript\r\nconst fileNameFromUrl = (req) => {\r\n    return req.url.replace(/\\//g, '-');\r\n}\r\n\r\nserver.datastore = new tus.FileStore({\r\n    path: '/files',\r\n    namingFunction: fileNameFromUrl\r\n});\r\n```\r\nAssuming the POST request was made to `/files`, the file name will now be `'-file'`"},"comment":{"url":"https://api.github.com/repos/tus/tus-node-server/issues/comments/220599895","html_url":"https://github.com/tus/tus-node-server/pull/30#issuecomment-220599895","issue_url":"https://api.github.com/repos/tus/tus-node-server/issues/30","id":220599895,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T13:04:31Z","updated_at":"2016-05-20T13:04:31Z","body":"\n[![Coverage Status](https://coveralls.io/builds/6264360/badge)](https://coveralls.io/builds/6264360)\n\nCoverage increased (+2.5%) to 86.22% when pulling **c5f3a5f71cb224aff4fad0c7f288bc3131a17311 on js3692:custom-filenames** into **16fbee536823e137251f2b5a4fe876cb155d0443 on tus:master**.\n"}}
{"actor":{"display_login":"coveralls"}}