Git Product home page Git Product logo

Comments (5)

nishantmc avatar nishantmc commented on May 30, 2024 1

Please share the deps in package.json.

from angular-material-fileupload.

Adam-Michalski avatar Adam-Michalski commented on May 30, 2024

I also see now that upload and remove buttons doesnt work after this error cause in this StackBlitz without error works fine

from angular-material-fileupload.

nishantmc avatar nishantmc commented on May 30, 2024

@Adam-Michalski, Was trying these deps on my side, couldn't replicate the error.
Can you please provide the command which you were trying? Also when i was trying the stackblitz link you posted, the only error i get is

OPTIONS http://localhost:8180/jax-rs-jersey-application-sample net::ERR_CONNECTION_REFUSED
Since i don't have a service running. So did you make sure that the upload service is running?

from angular-material-fileupload.

idzer0lis avatar idzer0lis commented on May 30, 2024

I have the same issue, I ll come back if I figure it out or have additional details.

I can confirm it has nothing to do with the backend, the upload is up and running.

I get the error during the component initialization. Everything works though...I can post the file.

I am using it like this:

@Component({
  selector: 'formly-field-file',
  template: `
    <input type="file" id="singleFile" [formlyAttributes]="field" [fileUploadInputFor]= "fileUploadQueue"/>
    <mat-file-upload-queue #fileUploadQueue
                           [fileAlias]="'file'"
                           [httpUrl]="'http://localhost:8000/api/song'">

      <mat-file-upload [file]="file" [id]="i" *ngFor="let file of fileUploadQueue.files; let i = index"></mat-file-upload>
    </mat-file-upload-queue>
  `,
})
export class FormlyFieldFile extends FieldType {}

If im using it HTML, not in a component template, everything is fine.

"@angular/core": "7.2.4",

from angular-material-fileupload.

lukeintilery avatar lukeintilery commented on May 30, 2024

Same issue here - same as @idzer0lis. Any fix?

from angular-material-fileupload.

Related Issues (20)

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.