Get started with filepond CDN

MIT licensed

FilePond is a popular open-source library for handling file uploads in web applications.

Tags:
  • javascript
  • file
  • upload
  • drag
  • drop
  • browse
  • paste
  • image
  • preview

Stable version

Copied!

How to start using filepond CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with filepond CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/filepond/4.30.6/filepond.min.css">
</head>
<body>
  <input type="file" id="file-input" multiple accept="image/*">
  <div id="output"></div>
  <script src="https://cdn.cdnhub.io/filepond/4.30.6/filepond.min.js"></script>
  <script>
    FilePond.registerPlugin(FilePondPluginImagePreview);
    FilePond.registerPlugin(FilePondPluginImageExifOrientation);

    document.addEventListener('DOMContentLoaded', () => {
      const inputElement = document.getElementById('file-input');
      FilePond.create(inputElement).on('processfile', (event) => {
        const outputElement = document.getElementById('output');
        outputElement.innerHTML += `<p>File: ${event.file.name}</p>`;
      });
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions