flowjs / ng-flow

Flow.js html5 file upload extension on angular.js framework
http://flowjs.github.io/ng-flow/
MIT License
1.38k stars 303 forks source link

Is it possible to set a manual path to a file in the Javascript Controller? #316

Open prawn9189 opened 7 years ago

prawn9189 commented 7 years ago

Hey there! I'm fairly new to this amazing library, and I would like to ask a question; I have an ID scanner for the software that i'm developing. So what happens is, I scan the ID and it auto-populates all the required fields in a Customer creation section, such as name, ID number and so on. For the profile picture part however, i'm using ng-flow to upload my images manually, but if i were to auto populate the image via the ID scanner, how would I do it? the ID scanner stores the ID's image in a local temp folder; "C:\temp\MYKAD-PHOTO.JPG". i've been trying to force this link to the flow obj, but it doesn't work; $scope.customer.obj.flow.files[0] = "C:\temp\MYKAD-PHOTO.JPG"; so yeap, any help here would be gladly appreciated! cheers!