Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script>
    UPLOADCARE_PUBLIC_KEY = 'demopublickey';
  </script>
  <script src="https://ucarecdn.com/widget/1.0.1/uploadcare/uploadcare-1.0.1.min.js"></script>
</head>
<body>
  <input type="file" multiple id="files">
</body>
</html>
 
var input = document.getElementById('files');
input.onchange = function() {
  var uploads = uploadcare.filesFrom('object', input.files);
  console.log(uploads);
  
  for (var i = 0; i < uploads.length; i++) {
    uploads[i].done(function(fileInfo) {
      console.log('uploaded!', fileInfo.uuid, fileInfo);
    });
  }
};
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
hommpro
0viewers