jellyjs / angular2-file-drop

Angular2 component with Drag and Drop support for files
23 stars 18 forks source link

dist/FileAPI.flash.swf?r=2.0.21 not found #18

Closed itsnotvalid closed 5 years ago

itsnotvalid commented 7 years ago

After reviewing the code, it's found that it did not disable (or expose) the the option to disable usage of flash plugin or expose params to tune the location of the swf.

NITIN-CODITAS commented 7 years ago

Even i am getting the same issue. screenshot from 2017-02-27 16 15 56

ox4 commented 7 years ago

overriding fileapi entry point fixed the issue for me.

for angular-cli projects in tsconfig.json add "path" property with the following value: "paths": { "fileapi": ["../node_modules/fileapi/dist/FileAPI.html5.min.js"] }

for webpack projects add "resolve" to the webpack.config.json: resolve: { alias: { 'fileapi': 'dist/FileAPI.html5.min.js' } }

for system.js add the following property to "packages": 'fileapi': { main: 'dist/FileAPI.html5.min.js', defaultExtension: 'js' },