Skip to content

Using with MongoDB and Node.js, is the post feature necessary? #407

@danielyaa5

Description

@danielyaa5

Do I need the the HTTP Post working if Im using Mongoose, cant I just pass the addedFileItems to mongodb through mongoose in the angular controller? It seems to work but I get these errors in the console. I tried setting the method option in fileuploader to null but that didnt help.
Thanks alot!
screen shot 2015-05-03 at 9 14 42 pm

Activity

aosi87

aosi87 commented on Jul 4, 2015

@aosi87

I dunno if you already solve your problem, if you do please close this issue.

That error looks like you are trying to POST data to an unknown $resource, one solution it's to test your REST path, or check NODEJS console there you will find something like

POST /apiv1/yourResource 200 89.163 ms - -
POST /apiv1/yourResource 200 103.125 ms - -
GET /lib/admin-lte/bootstrap/css/bootstrap.min.css 304 23.560 ms - -
GET /lib/components-font-awesome/css/font-awesome.css 304 30.216 ms - -

there you can find useful information about the problem, but my best guess its that you are POSTing to an url that doesn't exist. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @aosi87@nervgh@danielyaa5

        Issue actions

          Using with MongoDB and Node.js, is the post feature necessary? · Issue #407 · nervgh/angular-file-upload