Created
July 26, 2013 23:52
-
-
Save dyaa/6093010 to your computer and use it in GitHub Desktop.
FilePicker Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>FilePicker Test Drive</title> | |
</head> | |
<body> | |
<input class="picker" name="myName"/> | |
<input type="text" class="naed" value="NONE"/> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script type="text/javascript" src="//api.filepicker.io/v1/filepicker.js"></script> | |
<script type="text/javascript"> | |
filepicker.setKey('YOUR_KEY'); | |
$(function(){ | |
$('.picker').click(function(){ | |
filepicker.pick({ | |
mimetypes: ['image/*', 'text/plain'], | |
services:['COMPUTER', 'FACEBOOK', 'GMAIL'], | |
container: 'modal' | |
}, | |
function(InkBlob){ | |
$(".naed").attr("value",InkBlob.url); | |
}); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment