0

I am able to use the wonderful ng-flow.js. But I am unable to post additional String Value along with file

Please tell me how can i post additional data along with the file in ng-flow.js

1
  • Do you means you can't upload file with that ng-flow.js? Commented Oct 29, 2014 at 9:38

2 Answers 2

1

You can set options using config and pass a string value in query see below

    <div flow-init="config">
    </div>


    function FilesCtrl($scope) {
      $scope.config = {
        query: {flowParamName: value}
    } 
  }
Sign up to request clarification or add additional context in comments.

4 Comments

please suggest some another way. I think once you initialized the flow then u cant change the config from controller...
can you post your code of what you tried and what exactly you are trying to achieve
below is what i am taking about. If i am currently on employee page then file upload post target url should be 'mydomain/employee' and If i am currently on user page then file upload post target url should be 'mydomain/user' or please guide me how to post at least one string along with file so that i can differentiate.
have you found a solution ? i have the same problem. I want to send dynamic parameter, but once flow is initialized config can not be updated...
1

You should do the following <div flow-init="config"></div> Then

$scope.config = {
    query: function() {
        return {param: 'param value'}//your params, function will be called on every request
    }
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.