Closed francisrod01 closed 7 years ago
This solution isn't easy but I solved!
First, I solved the problem of changed defaults
as #61 issue.
Second, I set query parameters in uploadFile
method as below:
...
$flow.opts.query = { foo:bar };
$scope.$emit('flow::filesSubmitted', event, $flow, files);
and I catch this event as documentation recommended and there, you will use $flow.upload()
to send the file to the web server.
That's it, I learn best practices of ng-flow but the documentation is confuse about steps to follow.
I have a problem to implement a upload file in controller assuming
new Flow(opts)
as Flow object to upload after.I follow the ng-flow documentation:
My html init code in form:
My controller is below. Assume that
controller
is the alias to controller.Error output:
I didn't what's happening, because the documentation don't let met more information about errors.