I am using this plugin ng-flow for uploading .zip file and it is working properly. I need to pass dynamic values (user_id, job_id) in it for creating dynamic folders where the files get saved but this plugin uses config method to get initialize and I am not getting the way to pass dynamic value in config method
below are the codes which I have used
view part - index.html
server part - upload.php
controller part - app.js , here you will find a config function where I want to pass dynamic values to server part. In Config method I have tried to define a provider to access dynamic values but I didn't find out the way. Is there any way to access values in config (values which i want to access is in localstorageService plugin)
Hope I have explained you clearly.Any help or suggestion would be appreciated Thanks in advance
I got the solution how i can pass dynamic value dynamic values to server part.
first set flow init in your view portion
Then set dynamic to this config variable of header in your controller
(localStorageService contain my login details)
now you can access this id and token from server side by using $_SERVER