jquery-filepond

WebJar for jquery-filepond

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-pqina-jquery-filepond
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

jquery-filepond
WebJar for jquery-filepond
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/pqina/jquery-filepond

Download github-com-pqina-jquery-filepond

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-pqina-jquery-filepond/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-pqina-jquery-filepond</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-pqina-jquery-filepond/
implementation 'org.webjars.npm:github-com-pqina-jquery-filepond:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-pqina-jquery-filepond/
implementation ("org.webjars.npm:github-com-pqina-jquery-filepond:1.0.0")
'org.webjars.npm:github-com-pqina-jquery-filepond:jar:1.0.0'
<dependency org="org.webjars.npm" name="github-com-pqina-jquery-filepond" rev="1.0.0">
  <artifact name="github-com-pqina-jquery-filepond" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-pqina-jquery-filepond', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "github-com-pqina-jquery-filepond" % "1.0.0"
[org.webjars.npm/github-com-pqina-jquery-filepond "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

jQuery FilePond

jQuery FilePond is a handy jQuery adapter for FilePond, a JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience.

License: MIT npm version

Install from npm

npm install jquery-filepond --save

Or form a CDN:

<input type="file" class="my-pond" name="filepond"/>

<!-- include jQuery library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>

<!-- include FilePond library -->
<script src="https://unpkg.com/filepond/dist/filepond.min.js"></script>

<!-- include FilePond plugins -->
<script src="https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.js"></script>

<!-- include FilePond jQuery adapter -->
<script src="https://unpkg.com/jquery-filepond/filepond.jquery.js"></script>

<script>
  $(function(){
  
    // First register any plugins
    $.fn.filepond.registerPlugin(FilePondPluginImagePreview);

    // Turn input element into a pond
    $('.my-pond').filepond();

    // Set allowMultiple property to true
    $('.my-pond').filepond('allowMultiple', true);
  
    // Listen for addfile event
    $('.my-pond').on('FilePond:addfile', function(e) {
        console.log('file added event', e);
    });

    // Manually add a file using the addfile method
    $('.my-pond').first().filepond('addFile', 'index.html').then(function(file){
      console.log('file added', file);
    });
  
  });
</script>

Read the docs for more information

Versions

Version
1.0.0