delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

Upload file #110

Closed proft closed 8 years ago

proft commented 8 years ago

Hello!

I have model with photo field. How I can upload photo from Android client to Meteor.js server? Thanks!

proft commented 8 years ago

Bump ...

ocram commented 8 years ago

Thanks, good question!

That's definitely not the primary use case for Meteor, so support for file uploads is not as good as one would wish.

One solution might be to convert the files to Base64 on the client side (using JavaScript), sending them to the server, and decoding (or just storing) them there.

Some links that may be helpful:

Apart from that, sorry, there's not much more this library can do for you at the moment. To a great extend, it's a Meteor core issue.

proft commented 8 years ago

Thanks for response! I thought about base64 ... but stick to POST :)