{"action":"opened","issue":{"url":"https://api.github.com/repos/primefaces/primeng/issues/5919","repository_url":"https://api.github.com/repos/primefaces/primeng","labels_url":"https://api.github.com/repos/primefaces/primeng/issues/5919/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primeng/issues/5919/comments","events_url":"https://api.github.com/repos/primefaces/primeng/issues/5919/events","html_url":"https://github.com/primefaces/primeng/issues/5919","id":332421092,"node_id":"MDU6SXNzdWUzMzI0MjEwOTI=","number":5919,"title":"FileUpload adding files that were deleted from model","user":{"login":"johnfabian","id":20367682,"node_id":"MDQ6VXNlcjIwMzY3Njgy","avatar_url":"https://avatars0.githubusercontent.com/u/20367682?v=4","gravatar_id":"","url":"https://api.github.com/users/johnfabian","html_url":"https://github.com/johnfabian","followers_url":"https://api.github.com/users/johnfabian/followers","following_url":"https://api.github.com/users/johnfabian/following{/other_user}","gists_url":"https://api.github.com/users/johnfabian/gists{/gist_id}","starred_url":"https://api.github.com/users/johnfabian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnfabian/subscriptions","organizations_url":"https://api.github.com/users/johnfabian/orgs","repos_url":"https://api.github.com/users/johnfabian/repos","events_url":"https://api.github.com/users/johnfabian/events{/privacy}","received_events_url":"https://api.github.com/users/johnfabian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-14T14:12:13Z","updated_at":"2018-06-14T14:12:13Z","closed_at":null,"author_association":"NONE","body":"I'm using the p-upload control and a datagrid below. I have a delete button in the datagrid that deletes the file but when I delete and upload a different file the file that was deleted shows back up in the grid ???  \r\n\r\nIs this control caching or something? How do I remove a file from p-fileupload when I'm actually binding to a grid and clicking the delete button in the grid since I have auto upload with custom? \r\n\r\n<p-fileUpload name=\"filesArray[]\" customUpload=\"true\" (uploadHandler)=\"uploadFiles($event)\" allowTypes=\"/(\\.|\\/)(txt|doc|docx|xls|xlsx|pdf|png|jpeg|jpg|gif)$/\"\r\n    maxFileSize=\"2147483648\" auto=\"true\" multiple=\"true\" [mode]=\"uimode\" chooseLabel=\"Upload File\">\r\n\r\n    <!--Add Empty Template to prevent the other ui from showing-->\r\n    <ng-template let-file pTemplate=\"file\">\r\n\r\n    </ng-template>\r\n\r\n    <!--conditionally show files-->\r\n    <ng-container *ngIf=\"showFilePanel\">\r\n        <ng-template pTemplate=\"content\">\r\n\r\n           \r\n                        <p-dataTable #docsdt [value]=\"filesArray\" [rows]=\"10\" [paginator]=\"true\" [pageLinks]=\"3\" [rowsPerPageOptions]=\"[3,5,10,20]\"\r\n                            resizableColumns=\"true\" columnResizeMode=\"expand\" [responsive]=\"true\" [loading]=\"loading\" selectionMode=\"single\"\r\n                            [(selection)]=\"selectedFile\" [responsive]=\"true\">\r\n\r\n\r\n                            <p-column field=\"fileName\" header=\"File Name\"></p-column>\r\n\r\n\r\n                            <p-column header=\"\">\r\n                                <ng-template let-file=\"rowData\" pTemplate=\"body\">\r\n                                    <button type=\"button\" class=\"raised-btn\" pButton icon=\"fa-download\" label=\"View/Download\" (click)=\"downloadFile(file)\"></button>\r\n                                    <button type=\"button\" class=\"raised-btn\" pButton icon=\"fa-trash\" label=\"Delete\" (click)=\"deleteFile($event, file.fileId)\"></button>\r\n                                </ng-template>\r\n                            </p-column>\r\n                        </p-dataTable>\r\n\r\n                   \r\n        </ng-template>\r\n    </ng-container>\r\n</p-fileUpload>\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"johnfabian"}}