filepicker.io

How to get filepicker and turbolinks to play well together?

六眼飞鱼酱① 提交于 2019-12-09 07:33:31
问题 I develop a web app with rails 3.2, turbolinks and Filepicker.io I loade the API key like this (coffeescript). I think $(document).ready is enough, as the filepicker script get loaded once on the first request. $(document).ready -> filepicker.setKey "MY_KEY" I load Filepicker with the following (coffeescript). I should note that I use the jquery-turbolinks gem, which builds the support for turbolinks right into jquery. jQuery -> $("#publications_bulk-new #upload-button").on "click", -> form =

store files to filepicker.io from the command line?

旧城冷巷雨未停 提交于 2019-12-08 14:40:25
I have a bunch of files, I'd like to push them all to filepicker and use various convert options to manipulate them. How do I automate this process? Is there a way to do this outside of javascript with a traditional scripting language I can run from the command line? The way to do this is as a POST to /api/store/S3 with the contents of the file. For instance curl -F fileUpload=@test.html 'https://www.filepicker.io/api/store/S3?key={{apikey}}&filename=myCoolFile.html' There are other tools that perform similar actions, such as https://github.com/uams/geturl , but the mechanism they use (posting

How to tell Filepicker to upload file from a native input type=“file”?

↘锁芯ラ 提交于 2019-12-08 12:37:37
问题 TASK: PhoneGap application uploading photos to filepicker. I managed to use Filepicker within the app. I managed to use other uploader with native input: http://blueimp.github.io/jQuery-File-Upload/ What didn't manage though is to upload to Filepicker using native (for iOS6) input type="file" <!DOCTYPE html> <html> <head> <title>Filepicker PhoneGap iOS6</title> </head> <script type="text/javascript" src="cordova-2.2.0.js"></script> <script type="text/javascript" src="jquery.min.js"></script>

Filepicker widget breaks after upload

放肆的年华 提交于 2019-12-08 03:47:01
问题 Building an app in Meteor with bootstrap on the frontend, and I'm having some confusing behavior in the filepicker widget. It takes a noticeable interval for it to render properly, but more troubling is that after the upload completes the widget is rendered incorrectly, and won't work to upload more. --Subsequent work has uncovered an important fact! The widget breaks when the template itself re-renders, regardless of whether it was caused by the upload or by another interaction on the page.

Filepicker.io Web - Disable Inline Styles

折月煮酒 提交于 2019-12-06 12:51:36
I am having some trouble styling filepicker.io widgets for web, specifically filepicker-dragdrop . Is there any way to disable the inline styling and replace them with classes? Something like data-fp-disable-styles or perhaps when using data-fp-dropzone-class="..." the inline styling is automatically disabled. Although you can add classes to the button with the attribute data-fp-button-class , I cannot get rid of the inline styling on the on the dropzone and container div. You can set the data-fp-drag-class and data-fp-class options to set the styling of the dropzone and container div and use

filepicker.io - convert() and store vs FPUrl conversions

怎甘沉沦 提交于 2019-12-06 03:05:53
问题 I have an application where users upload an image and it has to be available in three different sizes (thumbnail, medium size, full size). The image does not need to be modified by my users. It seems there are two options: Option 1: Use image conversion urls whenever I want to display a thumbnail. Ex. https://www.filepicker.io/api/file/hFHUCB3iTxyMzseuWOgG/convert?w=200&h=250 Option 2: Use convert() with store to store the thumbnail in S3. My question is can I use Option 1? How would this

filepicker.io - convert() and store vs FPUrl conversions

☆樱花仙子☆ 提交于 2019-12-04 09:36:02
I have an application where users upload an image and it has to be available in three different sizes (thumbnail, medium size, full size). The image does not need to be modified by my users. It seems there are two options: Option 1: Use image conversion urls whenever I want to display a thumbnail. Ex. https://www.filepicker.io/api/file/hFHUCB3iTxyMzseuWOgG/convert?w=200&h=250 Option 2: Use convert() with store to store the thumbnail in S3. My question is can I use Option 1? How would this impact performance? Are the converted files cached on filepicker.io's end or does filepicker convert the

Properly enabling security for filepicker.io in Meteor

倖福魔咒の 提交于 2019-12-03 22:28:17
Filepicker by default allows pretty much everybody to add files to your S3 bucket who was clever enough to copy your API key out of the client code and luckily also offers a security option with expiring policies. But I have no idea how to implement this in Meteor.js. Tried back and forth, installing meteor-crypto-base package, trying to generate the hashes on the server, tried RGBboy's urlsafe-base64 algorithm on https://github.com/RGBboy/urlsafe-base64 . But I just do not get any further. Maybe someone can help! Thank you in advance. This is an example of how to do filepicker signed URLs in

How to save the file from HTTPS url in JAVA?

瘦欲@ 提交于 2019-12-03 10:20:57
问题 I am trying to save a file from URL using outputstream. The URL is secure by https. So I got some error when I try to get the file as the following javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) at sun

How to save the file from HTTPS url in JAVA?

﹥>﹥吖頭↗ 提交于 2019-12-03 00:52:13
I am trying to save a file from URL using outputstream. The URL is secure by https. So I got some error when I try to get the file as the following javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source)