Meteor-files: Form submit or click event to upload file(s)

Created on 23 Dec 2016  路  6Comments  路  Source: veliovgroup/Meteor-Files

Hi guys,

Thanks for this excellent meteor package, is very useful! One question, it's possible to upload files from click or submit events? Exist any example?

Thanks for all and merry Christmas!
Regards, Nicholls

All 6 comments

Sorry, works like a charm! Excellent package! :dancing_men:

Hello @jdnichollsc ,

I'm glad you have solved it. Thank you for a choice - it means a lot for me

Please, support this project by:

Of course my friend! Thanks for your hard work!
One question @dr-dimitru, what's the best way to remove files? Exist any method from this package? Or to update files without change the MongoDB id from the files collection?

Thanks in advance, Nicholls

@jdnichollsc

Take a look on:

  • remove - Which removes both record from DB and File itself
  • unlink - Low-level method, removes file and subversions from FS, leaving mongo record unchanged

Or to update files without change the MongoDB id from the files collection?

This is not possible currently even if you know _id of recently removed file, due to security concerns

@jdnichollsc you always can hack this by changing file directly on FS at Server side. File will remain available as long as path to file remains the same

Excellent, thanks for your help! It's much appreciated! 馃憤

Was this page helpful?
0 / 5 - 0 ratings