I am currently using AngularJS and encountering an issue when trying to call filePicker.pickAndStore from my Upload controller. Every attempt to use a filepicker.io API function triggers an "Unsafe Javascript attempt" error:
The frame requesting access has a protocol of 'https', while the frame being accessed has a protocol of 'http'. Protocols must match.
Javascript
angular.module('app').controller('UploadCtrl', ['$scope, function ($scope) {
$scope.uploadFiles = function() {
filepicker.pickAndStore({mimetype:'image/*'},{},function(files){console.log(files)},function(err){console.log(err)});
}
}]);
HTML:
<button type="button" ng-click="uploadFiles()">Upload</button>
The error pops up in the console as soon as I click the button and the filepicker modal appears.
I am still able to select and upload files, but it is unclear why this error is happening given that I have included the http filepicker source in my project.
Any assistance you can offer would be greatly appreciated.