Open vacarsu opened 8 years ago
Hi, all of the Cordova support has been contributed by users of this package. I'm not a Cordova developer, so I have no ability to develop or test Cordova specific features. As always, I'm open to PRs for this kind of thing...
@vacarsu
when you can upload file or image on desktop browser, you can easily display image by add below code
{
method: 'get'
path: '/:md5'
lookup: (params, query) ->
return { md5: params.md5 }
handler: (req, res, next) ->
console.log 'get'
res.setHeader 'Access-Control-Allow-Origin', '*'
res.setHeader 'Access-Control-Allow-Credentials', true
do next
}
but the hardiest part is how you can upload image on ios
@crapthings Thanks for the info!
this is a working cordova ios example
https://github.com/crapthings/meteor-photo
the ios can upload file by using input(type='file')
https://github.com/vsivsi/meteor-file-collection/issues/90#issuecomment-207639130
Hi , in the examples it shows how to show files in cordova in meteor 1.2 (http://meteor.local). Is there any examples for meteor 1.3 which uses localhost:app_id/ ? Doesn't seem to show images out of the box.
Here is my collection -
finding images and trying to display them with
<img src="{{'/gridfs/images/'+image.md5}}"/>
doesn't work in cordova.