{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/6be8e584a0f454ac2dc7600bdeaca7b7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6be8e584a0f454ac2dc7600bdeaca7b7","url":"https://api.github.com/users/brendo","login":"brendo","id":69268},"milestone":{"state":"open","open_issues":10,"url":"https://api.github.com/repos/symphonycms/symphony-2/milestones/3","due_on":null,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/6be8e584a0f454ac2dc7600bdeaca7b7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6be8e584a0f454ac2dc7600bdeaca7b7","url":"https://api.github.com/users/brendo","login":"brendo","id":69268},"description":"Encapsulates all future releases on the 2.x branch.\r\n\r\nIssues assigned to this milestone are on the roadmap, but have not been decided when they'll make into a specific release.","number":3,"title":"2.x","closed_issues":1,"created_at":"2011-07-03T03:24:13Z"},"assignee":null,"labels":[{"name":"confirmed","color":"423A3A","url":"https://api.github.com/repos/symphonycms/symphony-2/labels/confirmed"},{"name":"to discuss","color":"d87ef1","url":"https://api.github.com/repos/symphonycms/symphony-2/labels/to+discuss"}],"updated_at":"2011-10-29T13:32:45Z","closed_at":null,"comments":3,"url":"https://api.github.com/repos/symphonycms/symphony-2/issues/672","body":"Migrated from [Symphony Issue 608](http://symphony-cms.com/discuss/issues/view/608/) (paraphrased heavily)\r\n\r\n#### @ahwayakchih\r\n\r\nWhen file name (instead of real file upload) is passed in POST, field could try to duplicate file if another entry already has this one attached. That would make entry duplication work with file uploads, and allow to create JavaScript that could switch between file upload and selecting file name (for example, user could decide if he/she wants to upload new file, or select existing one).\r\n\r\n#### @brendo\r\n\r\n### User actions:\r\n\r\n1. File is uploaded and entry is saved.\r\n2. Another entry is created and a file of same name is uploaded and clashes\r\n3. Ask User, use this file, rename uploaded file or cancel\r\n\r\n### Use this file\r\n\r\nAllow user to click on the image and open it in a new window to verify it's the same. This will duplicate the existing file and append a numerical suffix to the filename (-1, -2) etc. This is a common system used by operating systems so it should be relatively familiar to the user.\r\n\r\n### Rename uploaded file\r\n\r\nAllows a user to rename the file they are uploading. This will need to trigger the same logic to repeat again to ensure the renamed name is still unique.\r\n\r\n### Cancel\r\n\r\nThe current behaviour\r\n\r\n#### @eKoeS\r\n\r\nRight, but my question is: what happens when there's a file clash? Is the entry already \"saved\" or not? If a green system message appears on top, then the user might think everything is okay and leave the page even if his/her action is still required by the upload field.\r\n\r\n#### @brendo \r\n\r\nThe usual yellow message saying there was an error when saving, please see below would appear","html_url":"https://github.com/symphonycms/symphony-2/issues/672","number":672,"title":"Duplicate file upload when another entry has it attached already.","id":1066373,"created_at":"2011-06-16T09:25:21Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/6be8e584a0f454ac2dc7600bdeaca7b7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6be8e584a0f454ac2dc7600bdeaca7b7","url":"https://api.github.com/users/brendo","login":"brendo","id":69268},"updated_at":"2011-10-29T13:32:45Z","url":"https://api.github.com/repos/symphonycms/symphony-2/issues/comments/2564905","body":"All sounds good to me, nice mockup too. Do you want to take care of this?","id":2564905,"created_at":"2011-10-29T13:32:45Z"}}