Closed pangky24 closed 7 years ago
Having the same issue, any further luck with this @pangky24 ?
Fixed my side by adding "FileUploadModule" to my module and importing it.
If it can help I successfully passed this error. More info here
I am having the same issue
I've try to make this work with no luck, I'm not sure that even works. All comments suggests you do something that was never discussed in the documentation (hacking). It should not be so difficult to get the BASIC functions working.
I'm dropping this. I'll simply do file upload manually until there is a simpler solution available.
The Following manual solutions do work, but you may need to tweak some of it (I could not get the upload progress working correctly - shows 0% the skips over to 100% but the file uploads successfully )
https://www.thepolyglotdeveloper.com/2016/02/upload-files-to-node-js-using-angular-2 https://embed.plnkr.co/ozZqbxIorjQW15BrDFrg/ http://stackoverflow.com/questions/32423348/angular2-post-uploaded-file
I have the same problem but importing the module like @rrubio says, works fine! Maybe it should be in the documentation.
FileUploadModule needs to be imported instead of adding the directives to the declarations array.
I am using angular2 '2.4.0'. also I have downloaded ng2-file-upload/master version. but I meet the error below. what I try next..
error
package.json
app.module.ts
watchface-detail.component.ts
watchface-detail.component.html