I am currently using AngularJS and I would like to call filePicker.pickAndStore from my download controller. Any call to the filepicker.io API function will result in an "Insecure Javascript Error" error:
The request for access to the frame request has the protocol "https", the accessed frame has the protocol "http". The puncture must match.
Javascript
angular.module('app').controller('UploadCtrl', ['$scope, function ($scope) { $scope.uploadFiles = function() { filepicker.pickAndStore({mimetype:'image
HTML:
<button type="button" ng-click="uploadFiles()">Upload</button>
The error is displayed in the console as soon as I press the button and a modal file appears.
I can still select and upload files, but I donβt know why this error occurs, since I include the http filepicker source in my project.
Thanks for any help you can provide.
source share