     restrict: 'A'
     scope:
         accept: '@'
-        cgFileUpload: '=?'
         progress: '=?'
         filename: '=?'
         onupload: '&'

            scope.$evalAsync()

        _onLoad = (file) ->
            scope.cgFileUpload = file.directurl
            scope.onupload?($file: file)
            _finally()


###
<div
    cg-file-upload
    upload-url="http://path/to/upload/endpoint"
    accept="*.xml,image/*"
    progress="MyCtrl.progress"
