{"action":"created","issue":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/860","labels_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/860/comments","events_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/860/events","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/860","id":116348035,"number":860,"title":"Client refresh on file upload","user":{"login":"mildful","id":12881057,"avatar_url":"https://avatars.githubusercontent.com/u/12881057?v=3","gravatar_id":"","url":"https://api.github.com/users/mildful","html_url":"https://github.com/mildful","followers_url":"https://api.github.com/users/mildful/followers","following_url":"https://api.github.com/users/mildful/following{/other_user}","gists_url":"https://api.github.com/users/mildful/gists{/gist_id}","starred_url":"https://api.github.com/users/mildful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mildful/subscriptions","organizations_url":"https://api.github.com/users/mildful/orgs","repos_url":"https://api.github.com/users/mildful/repos","events_url":"https://api.github.com/users/mildful/events{/privacy}","received_events_url":"https://api.github.com/users/mildful/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T14:46:26Z","updated_at":"2015-11-11T19:17:42Z","closed_at":null,"body":"Hi,\r\n\r\nI've a little issue with CollectionFS.\r\n\r\nI'm using the FileSystem storage adaptator and it works well ! When I insert a file (client-side) it goes into my folder but after each insertion, the client is refreshed.\r\n\r\nHere is some parts of my code if that can help :\r\n```javascript\r\n//client-side\r\nconst field = document.getElementsByName('avatar')[0];\r\n\r\nAvatars.insert(field.files[0], function (err, fileObj) {\r\n    if (err) {\r\n        //invalid file\r\n        console.log(err);\r\n    } else {\r\n        console.log(fileObj);\r\n    }\r\n});\r\n\r\n//server-side \r\nAvatars = new FS.Collection(\"avatars\", {\r\n    stores: [\r\n        new FS.Store.FileSystem(\"original\", { path: `${Meteor.settings.public.folder}/images/user/avatar/original` })\r\n    ],\r\n    filter: {\r\n        maxSize: 1000000, \r\n        allow: { contentTypes: ['image/*'] }\r\n    }\r\n});\r\n```\r\n\r\nMaybe this is caused by a reactive data source ?\r\n"},"comment":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/comments/155883276","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/860#issuecomment-155883276","issue_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/860","id":155883276,"user":{"login":"nooitaf","id":1898194,"avatar_url":"https://avatars.githubusercontent.com/u/1898194?v=3","gravatar_id":"","url":"https://api.github.com/users/nooitaf","html_url":"https://github.com/nooitaf","followers_url":"https://api.github.com/users/nooitaf/followers","following_url":"https://api.github.com/users/nooitaf/following{/other_user}","gists_url":"https://api.github.com/users/nooitaf/gists{/gist_id}","starred_url":"https://api.github.com/users/nooitaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nooitaf/subscriptions","organizations_url":"https://api.github.com/users/nooitaf/orgs","repos_url":"https://api.github.com/users/nooitaf/repos","events_url":"https://api.github.com/users/nooitaf/events{/privacy}","received_events_url":"https://api.github.com/users/nooitaf/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T19:17:42Z","updated_at":"2015-11-11T19:17:42Z","body":"It refreshed because you put it into the meteor app's folder. Any changes in the meteor app's folder trigger a refresh. "}}