-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error on upload #2
Comments
I haven't ever used the backend. If you figure this out I will accept a pr. I send images to my server via posting their JSON which has the datauri in it. |
https://github.com/boxxxie/angularjs-imageupload-directive/blob/master/demo/back-end/app.js#L29 put a |
that was the first thing i did, req.files is an empty object thanks for your help btw, i might just go with the base64 encoded version. but i think its probably worth figuring this out either way. Cheers, On Thu, Mar 27, 2014 at 7:52 PM, Paul Iannazzo notifications@github.comwrote:
|
OK. it may be a front end issue. I'll attempt to fix this problem soon. |
I'll see if i can get it going on my end too... Cheers, On Thu, Mar 27, 2014 at 9:28 PM, Paul Iannazzo notifications@github.comwrote:
|
pull and see if that fixed things. |
req.body still empty |
The backend isn't working because the frontend is requesting files that the backend isn't allowed to serve. |
i've got it working now, the back end is fine, the issue was in app.js this is after pulling your update |
can you submit a PR? |
Done Thanks. -Andrew Burgess
|
I'm trying to see if this will work for my project,
when i run the demo, the node server is throwing:
"TypeError: Cannot read property 'name' of undefined"
on this line:var newImageLocation = path.join(__dirname, image_download_dir , image.name);
any ideas?
The text was updated successfully, but these errors were encountered: