Portfolio with meteor

how i create a portfolio using meteor

Maybe you could start by looking at the tutorials and example apps to get some ideas?

i started by creating todos app and she was worked successful,and now i want to create a portfolio, i tried but some error blocked me

this is the client main.js

First off screen shots of code are highly unhelpful since 1. They have a limited area and require enlarging multiple images possibly back and forth between them to get a better understanding of your code, and 2. If we do spot an issue we can’t just copy and paste your code to make changes.

Basically what I see here is that you have iron:router installed but no routes configured. Also as a side note it looks like you are importing “Images” on line 4 and then redefining it on line 8 which will throw an error. I highly suggest eslint to catch these types of errors.


i don’t know how to expose a problem in network this is my second time very sorry

import { Template } from ‘meteor/templating’;
import { ReactiveVar } from ‘meteor/reactive-var’;
import { FilesCollection } from ‘meteor/ostrio:files’;
import { Images } from ‘/imports/api/images’;
import ‘./main.html’;

const Images = new FilesCollection({
collectionName: ‘Images’,
allowClientCode: false,
if(file <=10485760 && /png|jpg|jpeg/i.test(file.extention)){
return true
} else {
return ‘please upload image, with size equal or less than 10MB’;


Meteor.publish(‘files.images.all’, function(){
return Images.find().cursor;

this.currentUpload = new ReactiveVar(false);

‘change #fileInput’(e,template){
if(e.currentTarget.files && e.currentTarget.files[0]){
const upload = Images.insert({
file: e.currentTarget.files[0],
streams: ‘dynamic’,
cunckSize: ‘dynamic’
}, false);

  upload.on('start', function(){

  upload.on('end', function(error, fileObj){
    if (error) {
      alert('Error during upload: ' + error);
    } else {
      alert('File "' + fileObj.name + '" successfully uploaded');




imageFile() {
return Images.findOne();

There are no route definitions there for iron-router.
Try removing iron-router, or specifying a route definition that renders your upload form

1 Like