filepicker.io

Save a picture in S3 from a temporary URL

人盡茶涼 提交于 2019-12-20 07:10:07
问题 I am developing a website on ruby on rails where users can upload pictures thanks to paperclip , it is stored in amazon S3 . After, they can modify pictures thanks to aviary . But when i want to save the new pictures, aviary just gave me an temporary URL where i can get my modified picture. Does paperclip can do it ? I don't think it can save an picture from an URL and store it to S3 ? I've searched for a week now, and i don't know the best way to do it. I've read about filepicker , but the

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

Deadly 提交于 2019-12-18 19:44:27
问题 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:

Opening Up Facebook app outside Facebook

大城市里の小女人 提交于 2019-12-13 09:04:57
问题 I have a web app which I am loading in Facebook iframes. The thing is my app opens File Picker which sends backs the data form where it was loaded. But if my web app is inside an iframe it doesn't allow File picker to communicate back due to security reasons. So what I am doing it when the users on my FB page click on my app I take them out of the facebook and open my web app in browser. This thing works perfectly in Android or on my Windows. But in Iphone it doesn't takes the app outside and

filepicker.io add options to makedrop pane

偶尔善良 提交于 2019-12-13 00:32:26
问题 Can you tell me how to set the options for the makedroppane function I cannot figure it out. Here is my example code. I know it needs to be a dictionary array but I am not sure were to put it. In the example it just has the [0]. An example in the actual docs of the options setting would be nice. filepicker.setKey('###########'); var options = { "multiple": true }; filepicker.makeDropPane($('#exampleDropPane')[0],options, { dragEnter: function() { $("#exampleDropPane").html("Drop to upload");

Filepicker Drag-Drop Widget Size

徘徊边缘 提交于 2019-12-12 11:26:51
问题 Is there a way to specify the size of the default drag-drop pane for: <input type="filepicker-dragdrop"/> Ideally I want something like the larger Javascript drag-drop pane with a button for manual uploading. 回答1: Use the data-fp-drag-class property. You'll just have to define your own css class. https://developers.filepicker.io/docs/web/#widgets-drag http://jsfiddle.net/66z9K/ 来源: https://stackoverflow.com/questions/12380014/filepicker-drag-drop-widget-size

filepicker.io — easy implementation

强颜欢笑 提交于 2019-12-11 23:46:35
问题 I have a site, btstats.com, that provides the following service: "It imports a JSON file from 'Bluescan 4.0 Scanner for Android' and generates graphs and stats". I implemented Dropbox Chooser on my site with this simple and elegant code to provide the functionality, provided by Dropbox: <script type="text/javascript"> document.getElementById('dropbox-bt').onclick = function() { Dropbox.choose ({ linkType: 'direct', extensions: ['.json'], multiselect: false, success: function (files) { var

Send large files to GAE Blobstore via API (from S3)

淺唱寂寞╮ 提交于 2019-12-11 09:09:27
问题 I'm trying to send large files (50MB-2GB) that I have stored in S3 using filepicker.io to the Google App Engine Blobstore (in Python). I would like this to happen without going through a form on the client browser as it defeats the project requirements (and often hangs with very large files). I tried multiple solutions, including: trying to load the file into GAE with urlfetch (but GAE has a 32MB limit for requests/responses) constructing a multi-part form in python and sending it to

Filepicker.io works in IE10, not in IE9 or IE8

空扰寡人 提交于 2019-12-11 06:32:26
问题 I have a problem with making filepicker.io work with IE versions other than the latest 10. Other browsers work fine. I am attaching a simple code sample (the jQuery ready part is me trying to make it work). On IE8 and IE9, the "Pick File" button just does not show. A blank text input is shown instead. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.js"></script> <script> $(document).ready

S3 access: 'public' not working for files from internet URLs

与世无争的帅哥 提交于 2019-12-11 02:26:23
问题 I am trying to use ink file picker's library to allow users to upload images to my S3 bucket. This works great for files from the file system, but files from the internet somehow don't have their permissions set correctly, so the returned path is not publicly readable. store_options = { path: 'product/'+product_url+'/', access: 'public' }; filepicker.pickAndStore({},store_options,function(InkBlobs){ console.log(JSON.stringify(InkBlobs)); }); There aren't a lot of knobs to turn here -- anyone

How do I integrate filepicker.io with google app engine (blobstore)?

半腔热情 提交于 2019-12-10 15:27:20
问题 So I'm trying to use filepicker.io with a GAE application. The filepicker widget returns the URL of the file that a user uploaded. How do I then use this url to upload the file to GAE's blobstore? The blobstore only supports "file uploading through a form", so the real question is how to fake a form POST containing the URL of a file. 回答1: Faking a form post is possible, but it's much simpler to use the Files API Edit: To use the File API with urlfetch you would write something like this: from