Giter Site home page Giter Site logo

phpsmarter / filepond Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pqina/filepond

0.0 2.0 0.0 288 KB

๐ŸŒŠ A Flexible and Fun JavaScript File Upload Library

Home Page: https://pqina.nl/filepond

License: GNU General Public License v3.0

CSS 3.35% JavaScript 96.65%

filepond's Introduction

FilePond

A (21 KB gzipped) JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience.

Core Features

  • Accepts directories, files, blobs, local URLs, remote URLs and Data URIs.
  • Drop files, browse on filesystem, copy and paste files, or add files using the API.
  • Async uploading with AJAX or encode files as base64 data and send along form post.
  • Accessible, tested with AT software like VoiceOver and JAWS, navigable by Keyboard.
  • Image optimization, automatic image resizing, cropping, and correcting of EXIF orientation on the client saves bandwidth.
  • Responsive, automatically scales to available space, is function on both mobile and desktop.

Plugins

Boilerplates

Learn more about FilePond

Quick Start

Install from NPM

npm version

npm install filepond

Then import in your project:

import * as FilePond from 'filepond';

// Create a multi file upload component
const pond = FilePond.create({
    multiple:true,
    name:'filepond'
});

// Add it to the DOM
document.body.appendChild(pond.element);

Or get it from a CDN

<!DOCTYPE html>
<html>
<head>
  <title>FilePond from CDN</title>
  
  <!-- Filepond stylesheet -->
  <link href="https://unpkg.com/filepond/dist/filepond.css" rel="stylesheet">
  
</head>
<body>
  
  <!-- We'll transform this input into a pond -->
  <input type="file" class="filepond">
  
  <!-- Load FilePond library -->
  <script src="https://unpkg.com/filepond/dist/filepond.js"></script>

  <!-- Turn all file input elements into ponds -->
  <script>
  FilePond.parse(document.body);
  </script>
  
</body>
</html>

Getting started with FilePond

License

Commercial license

If you want to use FilePond on commercial sites, themes, projects, and applications, the Commercial license is what you need. With the commercial license, your source code is kept proprietary. View the license options on the pricing page.

Open source license

If you're working on an open source project under a license compatible with GPLv3, you may use FilePond under the terms of the GPLv3.

For more information you can read the full license here.

filepond's People

Contributors

rikschennink avatar safarishi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.