Git Product home page Git Product logo

ngx-dropzone's People

Contributors

dependabot[bot] avatar hackingharold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ngx-dropzone's Issues

Update to Angular 17

Support Angular 17

Angular 17 is out.
I updated it for you - see my pull request.

Thank you for this great library!

[ERROR The ngx-dropzone component requires a child of <input type="file" fileInput />.

Hello

I am implementing the module in an Angular 17 application and following the minimum integration steps, I get the error "The ngx-dropzone component requires a child of <input type="file" fileInput />".

This is the code I have implemented:

Component where I use Dropzone:

<image-dropzone>
    <input type="file" fileInput [formControl]="fileCtrl" />
</image-dropzone>

Wrapper component for Dropzone:

@Component({
    selector: 'image-dropzone',
    templateUrl: './dropzone.component.html',
    styleUrl: './dropzone.component.scss',
})

/**
 * Image dropzone component
 */
export class ImageDropzoneComponent extends DropzoneComponent {

}

And its corresponding HTML template:

<div class="my-dropzone">
    <ng-content select="[fileInput]"></ng-content>
</div>

Error displayed on console:

image

Output rendered in the DOM:

image

Did I miss any implementation steps?

Suggestion: icon parameter, default preview style

  1. There is no ability to add an icon in the attribute. Adding a material icon above the placeholder text in ngx-mat-dropzone would help

  2. I know the documentation says there is intentionally no default preview, but optionally having a default one would help save time from reinventing the wheel of building this to show the preview, styling it etc. If anyone wants to use the default one, they can use it and then override its default styling if necessary. I think this is a much better choice. Could this be added?

Feature request: Add option to append to current form field value

I suggest making a parameter in input field or something that will change current behaviour of inserting files. At this moment each time you drag/select files, it creates array of files from 0. Would be nice to have option for appending to array instead of re-assigning array of files.

Suggestion: allow null or empty values when using ‎FileInputValidators

Hi there!

Thanks for this useful library. Would it be possible to allow for the FileInputValidators validator to have null or empty values? There are cases where I want to limit the types of files to be submitted in a form but the field itself could be optional, but the validator returns false if there is no file so it gets marked as invalid.

Cannot find module 'cdk' or its corresponding type

image

This error pops up when i add

import { DropzoneMaterialModule } from "@ngx-dropzone/material";

but adding

import { DropzoneCdkModule } from "@ngx-dropzone/cdk";

there is no error. i'm using angular 16.0.2

Any way to make its markup work on Angular 15?

Hi.

Was looking for Drop Zone component for Angular 15 we use...
The old version (predecessor) is created for up to Angular 13 (and we would not like to use an outdated version of Drop Zone).
Your version supports Angular 16+. Why there's a gap and no support for Angular 14-15? :)
Anyway, I've installed your version using --legacy-peer-deps key. And as I can see from the debug, the dropped folder files are added to the form. But there's nothing in the markup and I can't see the way to fix it (the zone below actually does have files added):
image

Could you please suggest the way I can fix the markup somehow?

Suggestion: support directories on drag and drop

Hello Harold, I really appreciate your great work!

I would like to implement the ability to extract files from folders and subfolders using drag and drop.

If you don't mind, I'll start a pull request in the near future.

Greetings from Bavaria!

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.