Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
projectn00b
@projectn00b
I think it is on the cordova side of things. It works in the browser but not in the mobile app. I am going to try and build the mobile app instead of just run it to the phone in dev mode. that might work. @Falieson
mgaffneyny
@mgaffneyny
hey all!
mgaffneyny
@mgaffneyny
anyone have an image gallery sample code I can run locally?
http://generator-upload.meteor.com/ - I found this but it uses meteor kitchen to generate it
I am having trouble with image display not showing up
I am missing something from upload, to store and display which is a problem
this should really be in the demo and show how to display images or files after upload
Cristian
@cristianst

Hello! Does anybody know if is it possible to change the file name before upload / inserting it in the collection ?
I want to rename the original file and use the id as name .

Ive tried something like this but seems not to be working

@ image manager for img upload
@ param fsCollection

FS.Utility.eachFile(event, function (formFile) {

                var fsFile = new FS.File(formFile);
                var fileId = fsFile._id;

                fsFile.name(fileId);
                fsFile.metadata = metadata;
                fsCollection.insert(fsFile, callback);
            });
Maximilian Beck
@glumb
Hey guys. I'm trying out meteor, its quite nice so far. One thing I dont really understand is how relations work. I'm used to work with ORMs. I created a Mongo.Collection 'items' and a FS.Collection 'images'. How can I add an image to the 'items' collection? I tried Items.insert({image: image}). This adds something, but I dont have the image functions like image.url availabel in the template.
Or in other words, how to extend the example https://github.com/Sanjo/collectionFS_test/tree/ejson-file-reference to show the uploaded images
Maximilian Beck
@glumb
Is the way to go to add a helper which fetches the Images?
Template.items.events({
    'change .myFileInput': function (event, template) {
        var files = event.target.files;
        for (var i = 0, ln = files.length; i < ln; i++) {
            var fileObj = Images.insert(files[i]);
            Items.insert({
                type:  'test',
                image: fileObj._id
            });
        }
    }
});
Template.item.helpers({
    image: function () {
        return Images.findOne(this.image)
    }
});
Cristian
@cristianst
this.image = imageId ?
projectn00b
@projectn00b
@cristianst .name
fileObj.name
Tung Du
@dinhtungdu
Hi, I'm start with Collection FS today. I installed standard and Gridfs. when I test an upload, It inserts okay the file information into a Collection I created. But I didn't see the file uploaded to the cfs/files/myfolder/. How can I debug this?
Gary L. Glasscock
@Rathius
This message was deleted
is
stor d
Tung Du
@dinhtungdu
anyone knows?
Justin DiPierro
@JDiPierro
@dinhtungdu If you're using a GridFS store you won't see the file in the filesystem, it's stored in chunks in MongoDB. Do you have a Filesystem Store configured?
Tung Du
@dinhtungdu
@JDiPierro thank for your explanation, i get the point now :). I dont have Filesystem store, just GridFS. Thank you!
janibyekm
@janibekm
hi guys1
Emanuele Casabona
@Siphion
hi
janibyekm
@janibekm
i have question! I cant find /cfs/uploads folder
in my project doesnt have that folder but files are uploaded correctly
then i can show images, inspect console shows /cfs/uploads/image id/image name/
janibyekm
@janibekm
anybody else?
janibyekm
@janibekm
hi @glumb happy new year! is this way how to get image id name to mongo collecion!?
Steve Yang
@yyang
Hi all!
Maximilian Beck
@glumb
@janibekm sry I don't know yet.
Bohdan
@bodzie
hi all, help me pls with add default images, if image not faund
janibyekm
@janibekm
@glumb thank you!
Steve Yang
@yyang
Hi all - I was wondering - we are willing to use CFS & S3 with mutilpe meteor app server but everytime people upload they have problem with tempstore
Do you have ny idea?
santy
@santiq

Hi!
I want to set this metadata in the file of s3 bucket

Content-Disposition : attachment

How can i do that?

Steve Yang
@yyang
Hello?
Richard Fox
@rfox90
Yes there are 164 members in here
Steve Yang
@yyang
Yes I was wondering why my tempstore always crash
Richard Fox
@rfox90
Sure provide as much info as you can and someone will help you!
Steve Yang
@yyang
Thank you!
I’m using CollectionFS, use filestorage or gridfs for tempstore and s3 for permanent storage. We have a few meteor applications inststance running on different machines, and whenever we try to upload files it fails. Do you have any idea?
mgaffneyny
@mgaffneyny
can anyone help with ways to make this code better?
Template.postItem.helpers({ 'showPictures': function(){
return Pictures.find({},{limit:1});
}
});
I am trying to display the current image uploaded in a post
and was wondering what helper would be good to create
this is just displaying one image from the collection
without this it displays all images from collection
not sure if anyone has any suggestions?