{"action":"created","issue":{"url":"https://api.github.com/repos/ShareX/ShareX/issues/1407","repository_url":"https://api.github.com/repos/ShareX/ShareX","labels_url":"https://api.github.com/repos/ShareX/ShareX/issues/1407/labels{/name}","comments_url":"https://api.github.com/repos/ShareX/ShareX/issues/1407/comments","events_url":"https://api.github.com/repos/ShareX/ShareX/issues/1407/events","html_url":"https://github.com/ShareX/ShareX/issues/1407","id":140516184,"number":1407,"title":"Upload from url does current image name.","user":{"login":"theoddball","id":16966979,"avatar_url":"https://avatars.githubusercontent.com/u/16966979?v=3","gravatar_id":"","url":"https://api.github.com/users/theoddball","html_url":"https://github.com/theoddball","followers_url":"https://api.github.com/users/theoddball/followers","following_url":"https://api.github.com/users/theoddball/following{/other_user}","gists_url":"https://api.github.com/users/theoddball/gists{/gist_id}","starred_url":"https://api.github.com/users/theoddball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theoddball/subscriptions","organizations_url":"https://api.github.com/users/theoddball/orgs","repos_url":"https://api.github.com/users/theoddball/repos","events_url":"https://api.github.com/users/theoddball/events{/privacy}","received_events_url":"https://api.github.com/users/theoddball/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-13T19:02:55Z","updated_at":"2016-03-14T02:52:28Z","closed_at":null,"body":"I use amazon s3 (oddball.tf) for my image hosting, and I have to do %ra%ra%ra%ra%ra for my file names. When I upload from a url; take http://forums.backpack.tf/uploads/profile/photo-11007.jpg for example, it calls it the current image name: http://i.oddball.tf/8vl3B.png\r\nhttp://i.oddball.tf/jGKwO.png Have file uploads file name selected too."},"comment":{"url":"https://api.github.com/repos/ShareX/ShareX/issues/comments/196115579","html_url":"https://github.com/ShareX/ShareX/issues/1407#issuecomment-196115579","issue_url":"https://api.github.com/repos/ShareX/ShareX/issues/1407","id":196115579,"user":{"login":"Scrxtchy","id":12771982,"avatar_url":"https://avatars.githubusercontent.com/u/12771982?v=3","gravatar_id":"","url":"https://api.github.com/users/Scrxtchy","html_url":"https://github.com/Scrxtchy","followers_url":"https://api.github.com/users/Scrxtchy/followers","following_url":"https://api.github.com/users/Scrxtchy/following{/other_user}","gists_url":"https://api.github.com/users/Scrxtchy/gists{/gist_id}","starred_url":"https://api.github.com/users/Scrxtchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scrxtchy/subscriptions","organizations_url":"https://api.github.com/users/Scrxtchy/orgs","repos_url":"https://api.github.com/users/Scrxtchy/repos","events_url":"https://api.github.com/users/Scrxtchy/events{/privacy}","received_events_url":"https://api.github.com/users/Scrxtchy/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T02:52:28Z","updated_at":"2016-03-14T02:52:28Z","body":"if we replaced\r\nhttps://github.com/ShareX/ShareX/blob/master/ShareX/WorkerTask.cs#L240\r\n```\r\ntask.Info.FileName = filename;\r\n```\r\nwhere filename is\r\nhttps://github.com/ShareX/ShareX/blob/master/ShareX/WorkerTask.cs#L231\r\n```\r\n            string filename = URLHelpers.URLDecode(url, 10);\r\n            filename = URLHelpers.GetFileName(filename);\r\n            filename = Helpers.GetValidFileName(filename);\r\n```\r\n\r\nwith \r\n```\r\n            if (task.Info.TaskSettings.UploadSettings.FileUploadUseNamePattern)\r\n            {\r\n                string ext = Path.GetExtension(task.Info.FilePath);\r\n                task.Info.FileName = TaskHelpers.GetFilename(task.Info.TaskSettings, ext);\r\n            }\r\n```\r\n\r\nI think"}}