-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Image upload via http post #286
Comments
Hello @ankibalyan , take look at this example: https://github.com/noris666/Meteor-Files-POST-Example |
@dr-dimitru can I use |
Better to use |
@dr-dimitru how can replace this line https://github.com/noris666/Meteor-Files-POST-Example/blob/master/avatars.example.js#L33 |
You need to use WebApp.connectHandlers.use(MultipartParser); Of you can implement it yourself: WebApp.connectHandlers.use( function (request, response, next) {
if(!!~request._parsedUrl.path.indexOf '/api/v1/upload' && request.method is 'POST') {
// Upload logic here
return response.end();
}
next();
}); |
@dr-dimitru Don't know why, I tried with webapp as well as picker, But in both the cases, I'm getting
|
Nodejs v6.9.1, Meteor 1.4.2.1 |
try to see what else in |
logs below:
` |
Hey @noris666 , Could you please take a look on this issue. Related to your POST-upload example. |
@dr-dimitru no problem, i have some time. And also good point rewrite my example with "Webapp" implementation, before this issue i dont know about that features in Meteor :) lol 👍 If it is does not work, please share gist with your code :-) Thx. |
@dr-dimitru @noris666 Thanks a lot for pointing out that, That was my mistake in understanding |
@ankibalyan Finally you use Picker or Webapp ? If you use Webapp i intrested look code. |
@noris666 I just tested with picker right now, but I'll definitely do it with WebApp as there is no other use of Picker in my app. |
@ankibalyan please let me know when you finish the implementation with WebApp, ok ? |
@noris666 This was very simple to change to do with WebApp, I've uploaded on gist
Thanks :) |
@noris666 have you got a chance to update an example? @ankibalyan thank you for contribution, great solution. Haven't used |
@dr-dimitru yes of course, i will update in next days. |
Upload Image from Native clients, iOS / Android.
How can I upload images / pdf files via native apps, over https request.
If I do send a POST request with enctype as
multipart/form-data
can use this somewhere with below code
The text was updated successfully, but these errors were encountered: