madoublet / fixture-upload

Fixture upload is our free, open source JavaScript library to upload files and images directly to Amazon S3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fixture Upload

Fixture Upload is simple, drag-and-drop upload tool that allows you to upload files and images directly to Amazon S3. Fixture Upload also features the and Pica JS, Cropper JS, and Caman JS libraries so that you can quickly resize, crop, and stylize your photos.

Getting Started

Fixture Upload was built around a single plain JS class so that you can easily integrate it into the platform of your choice.

let el = document.querySelector('.app-upload');

let upload = new Upload(
    // upload el
    el, 
    // generate url
    function(file, done) {

        console.log('[debug] generate url');
        console.log(file);

        var url = "https://some-s3-url/";
        var method = "PUT"
        done(url, method);
    },
    // complete
    function(file) {},
    // error
    function(status, text) {}
);

Learn more

See a demo and watch a video of Fixture Upload here: https://fixture.app/open-source/upload.html

Acknowledgements

Fixture Upload would not be possible with these great Open Source projects.

Support

Fixture Upload is part of our incredible website builder - Fixture. Learn more at https://fixture.app

About

Fixture upload is our free, open source JavaScript library to upload files and images directly to Amazon S3.


Languages

Language:HTML 100.0%