i have one page, someone is supposed to login ,on that same page someone is supposed to attach a photo then click the upload button.in a nutshell that is what the app does. The login is successful and am able to store that session token in a variable of type string .AM also able to capture the photo and display it on the page,what i can't do is to take it from local storage to the database
The upload service is asking for 2 parameters, a session token and data. I pass on the token i have stored on the page after login then also pass on the data returned by the camera service stored in the im variable also on the same page. when i click the upload button am returned with the above error.The first screenshot i posted when thoroughly examined the session token is not passed on but i fixed that and still the same error is returned.Bad Request
if i can't get a fix for this, kindly walk me through uploading a photo taken by camera to the database,i have looked through all the documentation and tutorials everything seems right ..Am working with ionic and angularJS