GithubHelp home page GithubHelp logo

prodixx / dropzone-field-for-backpack Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 27 KB

Adds a dropzone field type to Backpack for Laravel

License: MIT License

PHP 51.26% Blade 48.74%
laravel backpack-for-laravel addon dropzone field

dropzone-field-for-backpack's People

Contributors

prodixx avatar pxpm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pxpm

dropzone-field-for-backpack's Issues

[Bug] maxFiles Doesn't Really Work As Intended

Bug report

What I did

I modified the dropzone to allow for a maximum number of files

What I expected to happen

After exceeding the maximum it would not allow for more uploads

What happened

It does not account for existing images

What I've already tried to fix it

If you look at https://stackoverflow.com/questions/31627154/dropzone-js-v4-display-existing-files-on-server-with-work-limiting-the-number/31627155#31627155 you will see that you need to load in the images via an init function so that it is accounted for in the count of images. A positive for this is that you can remove the $('.dz-remove-existing') function. In a few days I may be able to create a merge request for this, but I wanted to point it out for now

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.