Skip to content

Commit

Permalink
Fix file upload page when adding the same file multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Apr 23, 2020
1 parent bac5305 commit 75c9db3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/scripts/xin/upload_file/upload_file_ctrl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ angular.module('xin_uploadFile', ['appSettings', 'xin_s3uploadFile', 'xin.fileUp
scope.newUpload(file)

form_elem.reset()
scope.$apply()

# Folder form
folder_selector_elem = elem.find('.folder-selector')[0]
Expand All @@ -68,6 +69,7 @@ angular.module('xin_uploadFile', ['appSettings', 'xin_s3uploadFile', 'xin.fileUp
scope.newUpload(file)

form_elem.reset()
scope.$apply()

.controller 'UploadFileController', ($scope, $http, Backend) ->

Expand Down

0 comments on commit 75c9db3

Please sign in to comment.