GithubHelp home page GithubHelp logo

uniprank / ng2-file-uploader Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 3.0 2.21 MB

An angular2 uploader component and directive library for upload and preview uploading files.

License: MIT License

HTML 12.07% CSS 0.89% TypeScript 34.09% JavaScript 52.18% PHP 0.54% Shell 0.22%
ng2 file-uploader angular-2 module image-preview progress-bar angular-io ngx angular

ng2-file-uploader's People

Contributors

denfie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ng2-file-uploader's Issues

Safari can't find the property'lastModifiedDate'

this.lastModifiedDate = new Date(object.lastModifiedDate.getTime());

Author, Hello, this component is under my project Safari browser, this section of code'this.lastModifiedDate = new Date (object.lastModifiedDate.getTime ()); 'the error can not find the property'lastModifiedDate', change to'lastModified', it is no problem, it is suggested to change this paragraph to'this.lastModifiedDate = new Date (obj). Ect.lastModified); 'no problem at all, browsers are supported.

lint code report errors

report errors msg:
Failed to load D:\project\LUNZ-UI\node_modules@uniprank\ng2-file-uploader\tslint.json: Could not find custom rule directory: D:\project\LUNZ-UI\node_modules@uniprank\ng2-file-uploader\node_modules\codelyzer

Any way to add active reload of headers, formData etc.

Hello,

Currently I have a text box to go along with the uploader. When a user types in that textbox it should take that value and append it to the headers or formData options. Anyway guidance on to implement that?

Cheers!

Variable error while serving the code with Quick start

When run the code, getting below error, Could you please help me on this.

node_modules/@uniprank/ng2-file-uploader/module/source/fileManager.core.ts(251,1
3): error TS7005: Variable '_uploader' implicitly has an 'any' type.
node_modules/@uniprank/ng2-file-uploader/module/source/protocol.core.ts(129,13):
error TS7005: Variable '_request' implicitly has an 'any' type.
node_modules/@uniprank/ng2-file-uploader/module/source/protocol.core.ts(173,13):
error TS7005: Variable 'sendable' implicitly has an 'any' type.
node_modules/@uniprank/ng2-file-uploader/module/source/transfer.core.ts(440,31):
error TS7005: Variable 'key' implicitly has an 'any' type.
node_modules/@uniprank/ng2-file-uploader/module/source/transfer.core.ts(440,36):
error TS7005: Variable 'val' implicitly has an 'any' type.
node_modules/@uniprank/ng2-file-uploader/module/source/transfer.core.ts(440,41):
error TS7005: Variable 'i' implicitly has an 'any' type.

AOT compilation throwing an error

Issue Overview

While trying to do AOT for my app the cli was throwing the below error
ERROR in Unexpected value 'undefined' exported by the module 'FileUploaderModule in /node_modules/@uniprank/ngx-file-uploader/typings/index.d.ts'

Issue Description

The command that I used to run AOT node_modules/.bin/ngc -p tsconfig-aot.json
File content for tsconfig-aot.json
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"lib": [
"es2015", "dom"
],
"module": "es2015"
},
"files": [
"src/app/app.module.ts",
"src/main.ts"
],

"angularCompilerOptions": {
"genDir": "aot",
"skipMetadataEmit" : true
}
}

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.