{"action":"opened","issue":{"url":"https://api.github.com/repos/timbrandin/autoform-slingshot/issues/8","repository_url":"https://api.github.com/repos/timbrandin/autoform-slingshot","labels_url":"https://api.github.com/repos/timbrandin/autoform-slingshot/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/timbrandin/autoform-slingshot/issues/8/comments","events_url":"https://api.github.com/repos/timbrandin/autoform-slingshot/issues/8/events","html_url":"https://github.com/timbrandin/autoform-slingshot/issues/8","id":175922583,"number":8,"title":"Files removed if used in an autoform array when adding another item","user":{"login":"bwoods89","id":1126770,"avatar_url":"https://avatars.githubusercontent.com/u/1126770?v=3","gravatar_id":"","url":"https://api.github.com/users/bwoods89","html_url":"https://github.com/bwoods89","followers_url":"https://api.github.com/users/bwoods89/followers","following_url":"https://api.github.com/users/bwoods89/following{/other_user}","gists_url":"https://api.github.com/users/bwoods89/gists{/gist_id}","starred_url":"https://api.github.com/users/bwoods89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwoods89/subscriptions","organizations_url":"https://api.github.com/users/bwoods89/orgs","repos_url":"https://api.github.com/users/bwoods89/repos","events_url":"https://api.github.com/users/bwoods89/events{/privacy}","received_events_url":"https://api.github.com/users/bwoods89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-09T03:57:30Z","updated_at":"2016-09-09T03:57:30Z","closed_at":null,"body":"I have an array in my schema where each item in the array I want to use the file uploader to pick a file (in this case, an image) to upload. \r\n\r\nIf I click the \"+\" button on the fields, before I start choosing files, it works correctly, but if I choose a file, then click the \"+\" button, the previous image disappears and is not saved. Here's a snippet of my schema, and my form\r\n\r\n```\r\n  image: {\r\n    type: Array,\r\n    label: \"Images\",\r\n    optional: true\r\n  },\r\n  'image.$': {\r\n    type: String,\r\n    label: \"Image\",\r\n    autoform: {\r\n      type: 'slingshotFileUpload',\r\n      afFieldInput: {\r\n        slingshotdirective: 'imageUpload'\r\n      }\r\n    }\r\n  },\r\n```\r\n\r\n```\r\n<template name=\"insertHostForm\">\r\n  {{#autoForm collection=hostsCollection id=\"insertHostForm\" type=\"insert\"}}\r\n      {{> afQuickField name=\"name\"}}\r\n      {{> afQuickField name=\"bio\" type=\"textarea\"}}\r\n      {{> afQuickField name=\"image\"}}\r\n    <button type=\"submit\" class=\"wdav button\">Save</button>\r\n  {{/autoForm}}\r\n</template>\r\n```"}}
{"actor":{"display_login":"bwoods89"}}