Backend Demo Error #295

Closed
opened 2016-07-11 06:54:16 +00:00 by magnumheart · 5 comments
magnumheart commented 2016-07-11 06:54:16 +00:00 (Migrated from github.com)

Any ideas why the code for back-end demo is not working?

I copied the code to 'file-catcher.js'. When I run using node, it gives an error:

throw new TypeError('app.use() requires middleware functions');
^

I'm using Angular RC1

Thanks in advance.

Any ideas why the code for back-end demo is not working? I copied the code to 'file-catcher.js'. When I run using node, it gives an error: ``` throw new TypeError('app.use() requires middleware functions'); ^ ``` I'm using Angular RC1 Thanks in advance.
magnumheart commented 2016-07-11 07:56:02 +00:00 (Migrated from github.com)

I realized I need to use version 3 of Express for the Backend Demo code to work.
But now, there's a 500 Internal Server Error
The console logs:
TypeError: upload is not a function

I realized I need to use version 3 of Express for the Backend Demo code to work. But now, there's a 500 Internal Server Error The console logs: `TypeError: upload is not a function`
t246246 commented 2016-07-12 13:00:19 +00:00 (Migrated from github.com)

See my demo modified for current express and multer at https://github.com/valor-software/ng2-file-upload/issues/264#issuecomment-226997174 (I tested express 4.14.0 and multer 1.1.0) Hope that can help you.

See my demo modified for current express and multer at https://github.com/valor-software/ng2-file-upload/issues/264#issuecomment-226997174 (I tested express 4.14.0 and multer 1.1.0) Hope that can help you.
vgogov commented 2016-07-18 15:31:46 +00:00 (Migrated from github.com)

@t246246 Thank you so much!! <3. Modifying my demo similar to yours removed some errors and now it works!

@t246246 Thank you so much!! <3. Modifying my demo similar to yours removed some errors and now it works!
valorkin commented 2016-07-19 07:17:48 +00:00 (Migrated from github.com)

@t246246 hey, please join slack https://www.hamsterpad.com/chat/ng2 and DM me
if you want an write access to this repo

@t246246 hey, please join slack https://www.hamsterpad.com/chat/ng2 and DM me if you want an write access to this repo
adrianfaciu commented 2017-10-02 15:11:06 +00:00 (Migrated from github.com)

Closing due to inactivity. Let us know if you still have issues.

Closing due to inactivity. Let us know if you still have issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#295