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

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

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