filepicker.io

filepicker.io Javascript API calls result in unsafe javascript errors

淺唱寂寞╮ 提交于 2019-12-01 21:15:26
问题 I'm currently using AngularJS, and I would like to call filePicker.pickAndStore from my Upload controller. Any call to a filepicker.io API function results in an "Unsafe Javascript attempt" error: The frame requesting access has a protocol of 'https', the frame being accessed has a > protocol of 'http'. Procols must match. Javascript angular.module('app').controller('UploadCtrl', ['$scope, function ($scope) { $scope.uploadFiles = function() { filepicker.pickAndStore({mimetype:'image/*'},{}

filepicker.io Javascript API calls result in unsafe javascript errors

こ雲淡風輕ζ 提交于 2019-12-01 19:14:20
I'm currently using AngularJS, and I would like to call filePicker.pickAndStore from my Upload controller. Any call to a filepicker.io API function results in an "Unsafe Javascript attempt" error: The frame requesting access has a protocol of 'https', the frame being accessed has a > protocol of 'http'. Procols 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"

Filepicker does not accept mimetype 'text/csv' on windows

五迷三道 提交于 2019-12-01 03:48:22
问题 I am using filepicker and set the mimetype for the upload on 'text/csv'. It works pretty well on Mac chrome, but on windows it does not. Any idea on how to fix this? Thanks. Ace 回答1: Try the alternative mimetypes as well: text/comma-separated-values, text/csv, application/csv, application/excel, application/vnd.ms-excel, application/vnd.msexcel Source: http://filext.com/file-extension/CSV 来源: https://stackoverflow.com/questions/17518440/filepicker-does-not-accept-mimetype-text-csv-on-windows

Resource interpreted as Document but transferred with MIME type image/jpeg

ε祈祈猫儿з 提交于 2019-11-30 18:21:45
I'm using Filepicker.io to handle my image uploads on my website. I'm also using FancyBox to display a nice slider. Everything works fine if I use a regular image like: http://i.imgur.com/asdf.jpeg as the <img src=""> . Meaning I click the images and the slider pops up correctly. However when I switch out those static image url's and use my Filepicker addresses, when I click on the images to open the fancybox, the image is downloaded. Here's the message I get in the console, on Google Chrome: Resource interpreted as Document but transferred with MIME type image/jpeg: "https://www.filepicker.io