{"action":"created","issue":{"url":"https://api.github.com/repos/apostrophecms/apostrophe/issues/1507","repository_url":"https://api.github.com/repos/apostrophecms/apostrophe","labels_url":"https://api.github.com/repos/apostrophecms/apostrophe/issues/1507/labels{/name}","comments_url":"https://api.github.com/repos/apostrophecms/apostrophe/issues/1507/comments","events_url":"https://api.github.com/repos/apostrophecms/apostrophe/issues/1507/events","html_url":"https://github.com/apostrophecms/apostrophe/issues/1507","id":345165743,"node_id":"MDU6SXNzdWUzNDUxNjU3NDM=","number":1507,"title":"apostrophe-attachments file name processing","user":{"login":"AlexeyFxDev","id":33134310,"node_id":"MDQ6VXNlcjMzMTM0MzEw","avatar_url":"https://avatars0.githubusercontent.com/u/33134310?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexeyFxDev","html_url":"https://github.com/AlexeyFxDev","followers_url":"https://api.github.com/users/AlexeyFxDev/followers","following_url":"https://api.github.com/users/AlexeyFxDev/following{/other_user}","gists_url":"https://api.github.com/users/AlexeyFxDev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeyFxDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeyFxDev/subscriptions","organizations_url":"https://api.github.com/users/AlexeyFxDev/orgs","repos_url":"https://api.github.com/users/AlexeyFxDev/repos","events_url":"https://api.github.com/users/AlexeyFxDev/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeyFxDev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-27T09:58:44Z","updated_at":"2018-07-27T16:56:23Z","closed_at":null,"author_association":"NONE","body":"I had added apostrophe-attachments module for uploading images:\r\n```\r\n'apostrophe-attachments':{\r\n      fileGroups: [{\r\n        name: 'images',\r\n        label: 'Images',\r\n        extensions: [ 'gif', 'jpg', 'png', 'svg' ],\r\n        extensionMaps: {\r\n          jpeg: 'jpg'\r\n        },\r\n        image: false\r\n      }\r\n\r\n    },\r\n```\r\n\r\nAnd when I click 'View file', I have received url  <filename>-full.svg, so apostrophe return:  \r\n\r\n> \r\nWe're sorry. We couldn't find the page you're looking for. \r\n\r\n But in upload folder I have <filename>.svg. How to fix it?"},"comment":{"url":"https://api.github.com/repos/apostrophecms/apostrophe/issues/comments/408478021","html_url":"https://github.com/apostrophecms/apostrophe/issues/1507#issuecomment-408478021","issue_url":"https://api.github.com/repos/apostrophecms/apostrophe/issues/1507","id":408478021,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODQ3ODAyMQ==","user":{"login":"houmark","id":467330,"node_id":"MDQ6VXNlcjQ2NzMzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/467330?v=4","gravatar_id":"","url":"https://api.github.com/users/houmark","html_url":"https://github.com/houmark","followers_url":"https://api.github.com/users/houmark/followers","following_url":"https://api.github.com/users/houmark/following{/other_user}","gists_url":"https://api.github.com/users/houmark/gists{/gist_id}","starred_url":"https://api.github.com/users/houmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houmark/subscriptions","organizations_url":"https://api.github.com/users/houmark/orgs","repos_url":"https://api.github.com/users/houmark/repos","events_url":"https://api.github.com/users/houmark/events{/privacy}","received_events_url":"https://api.github.com/users/houmark/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T16:56:23Z","updated_at":"2018-07-27T16:56:23Z","author_association":"CONTRIBUTOR","body":"I have seen it yes, but it's \"the hardcoded way\". What I was thinking could come out of a more extensive implementation of SVG's could be something like:\r\n\r\n* A tag or type is added to an uploaded SVG in the the normal image uploader, which will save the SVG\r\n* A widget (core or official at least) can be configured to use specific tags which when created will show a list of all SVG's that fits the tag(s)\r\n* Upon insert the SVG is rendered \"nicely\"\r\n\r\nThis would make the designer in the house able to upload a new SVG for the copywriter to use day to day, without the developer coming in to add another option in the schema field.\r\n\r\nThis is a new thought and maybe due to the fast development in Apostrophe for adding new options, this is not really needed, but nonetheless it's something I could see useful."}}
{"actor":{"display_login":"houmark"}}