Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 19 06:44
    dr-dimitru commented #797
  • Apr 19 06:30
    jankapunkt labeled #797
  • Apr 19 06:30
    jankapunkt labeled #797
  • Apr 19 06:30
    jankapunkt opened #797
  • Apr 16 19:45
    GSYamaji commented #794
  • Apr 16 19:44
    GSYamaji closed #794
  • Apr 16 18:51
    dr-dimitru commented #794
  • Apr 12 13:50
    naschpitz commented #796
  • Apr 12 13:49
    naschpitz commented #796
  • Apr 12 12:57
    naschpitz commented #796
  • Apr 12 12:56
    naschpitz commented #796
  • Apr 12 12:19
    dr-dimitru commented #796
  • Apr 12 04:51
    naschpitz edited #796
  • Apr 12 04:50
    naschpitz opened #796
  • Apr 10 08:50
    jankapunkt commented #753
  • Apr 08 23:12
    harryadel commented #753
  • Apr 08 22:57
    harryadel opened #795
  • Apr 08 19:42
    dr-dimitru closed #786
  • Apr 08 19:42
    dr-dimitru commented #786
  • Apr 08 19:41
    dr-dimitru commented #794
plvenkatesh92
@plvenkatesh92
I am using ostrio:files plugin to add, update or remove an image. I am not able to preview the uploaded image. I am using react js as a front end. Can any one help me?
Eric Burel
@eric-burel
Hi guys, I can't find any documentation about controlling access to file, so that files are available to only certain users. I am probably not the first to do that, is there any resource I could use?
dr.dimitru
@dr-dimitru
@plvenkatesh92 you have to implement it yourself showing image as base64 after user has selected a file. This is not related to the libary, amd you can find a lot of examples in the internet
Eric Burel
@eric-burel
Thanks! So to create a sharing system, I guess you would create another collection storing permission of the files + the fileId, which you can then query in the "protected" callback
Eric Burel
@eric-burel
Also how is populated this.userId? I can't seem to get it defined
nvm, by using this.request I can retrieve the user, that's nice
Eric Burel
@eric-burel
hmmm, protected can't be an async function? adding async makes the check fail systematically
dr.dimitru
@dr-dimitru

protected can't be an async function? adding async makes the check fail systematically

Use fibers/future

kakadais
@kakadais
What a great channel here-. Nice to meet you guys.
kakadais
@kakadais
I just opened new issue for Suggetion on git-hub. Not urgent one. But please have an attention if you guys available-
dr.dimitru
@dr-dimitru

Hello @kakadais ,

Thank you for your proposal, we are looking forward to release major release for Meteor-Files package, with idea of pluggable adapters for 3rd party storage, we will take your suggestions into consideration.

To be honest upload re-tries should be managed by adapter/3rd party storage implementation

ecarlotti
@ecarlotti
is there a sample on how to use Meteor-Files for creating Temporary Files on the server?
ecarlotti
@ecarlotti

what I need to do is:

  1. Create a temporary file;
  2. Write lots of data to it - This includes looping through a collection and exporting data, so I need to be able to "append" data to the temp file;
  3. return the newly generated temp file to the client - It will be immediately downloaded there;
  4. After the download ends, the file has to be removed/destroyed.

From all I read about this component I think I would be able to do all that with it - Is that correct??
Can anyone give me any instructions on how I should proceed in order to do that?

-= Thanks in advance =-

dr.dimitru
@dr-dimitru

Hello @ecarlotti ,

I don't think yiu need any 3rd party library at all, everything you described available in node.js

This library more about files management, rather than reading/writing
ecarlotti
@ecarlotti
@dr-dimitru , Thanks a lot for your answer - I'm quickly getting to that conclusion, but it seems using the component makes my life easier in terms of managing the temp files - The component gives me a ready-to-use Meteor download mechanism as well as all the event handlers I would have to otherwise create myself. It seems to be a good way to go...
dr.dimitru
@dr-dimitru
@ecarlotti download endpoint is fraction of its codebase. You can achieve it with middleware created using webapp module
Fei Yan
@kernelogic
Hi guys, I am trying to achieve a very simple feature to allow my Meteor application to download a file already saved on the server disk. I googled a lot and this package seems to serve my purpose but I feel it's an overkill. So my question is, is this package the best to suit my need or if there's anything else out there?
dr.dimitru
@dr-dimitru
@kernelogic it should fit your needs
use .addFile, then fileURL to get downloadable URL
Fei Yan
@kernelogic
Thanks. Also is there a way to do pagination if I have a large amount of files?
dr.dimitru
@dr-dimitru
@kernelogic yes, like with any other meteor collection
kakadais
@kakadais
I always wondered, are you doing this Veliov things alone? @dr-dimitru
dr.dimitru
@dr-dimitru
@kakadais Nearly 98% of open source โ€” yes
kakadais
@kakadais
Damn good and cheers- ;)
_Saeed_
@Saeed-Bahrami
Hi
How to get link file after upload in Meteor Files
Hello friends, I am uploading my text editor (Quil Editor) files using React and Meteor-Files.
But I do not know exactly how to get the link after uploading and put it in the editor.
Do I have to subscribe to get the link to that file after upload?
And if so. Is there a way to subscribe to that file right away?
I asked hear too :
@dr-dimitru?
dr.dimitru
@dr-dimitru
Hello @Saeed-Bahrami I updated .link() method documentation, hope now this method usage will be more straightforward. Also answered on your veliovgroup/Meteor-Files#769
Mickael Faivre-Maรงon
@micktaiwan
Hello, is there a way to remove a particular version of a file ?
dr.dimitru
@dr-dimitru
@micktaiwan yes, https://github.com/veliovgroup/Meteor-Files/blob/master/docs/unlink.md
FilesCollection#unlink(fileObj, 'version')
kakadais
@kakadais

Hello guys-

Meteor-Files is great to integrate file server as a single one, so server scales are much easier than before, but using multi-core would be good to go from the scratch.

Have you any idea for clustering for Meteor?

I'm expecting none Node or System level something like pm2/passenger , but something higher level integration such as kadira:clustering, but seems like not maintained.

Any idea?

dr.dimitru
@dr-dimitru
@kakadais this is related to DevOps and the way beyond this package. There are a lot of ways to implement horizontally scaled and decentralized node.js apps, as well as a lot of way to do it wrong. I'd recommend to look on DNS balancing, haProxy, nginx, and Phusion Passenger
kakadais
@kakadais

@dr-dimitru Oh I think I made a misunderstanding, that's why I said None System Level something cause I have a knowledge about the field and used it.

I've seen the below video recently for cluster package and realized Microservices for Meteor were already concerned from 2015,
and thought that this model is super great.

https://www.youtube.com/watch?v=oudsAQZkvzQ&feature=youtu.be&t=15m27s

I think the reason why people are not implemented there system as a microservice is 'Annoying'. If we handle whole system level to salce up/out then the configuration and flexibility will hold us even a single changes, so some people uses NetflixOSS stuff to build their DevOps efficiently.

But after I've looked up the NetflixOSS things, it is still complex enough because of too much options and almost of it is not required at the small/middle system so we couldn't start on the same line.

The metreorhacks/cluster package is simple enough and especially Multi-Core Support strategy by node worker is so cool and works good still, I got a curiosity 'Isn't there any movement about this' things.

I should dig some more for this movement in Meteor or Node- ;)
So Need and Interesting part-

dr.dimitru
@dr-dimitru
@kakadais to be honest I'd start with answering a question "what are you trying to accomplish?" and "what's your goal?"
kakadais
@kakadais

@dr-dimitru Oh I just asked your opinion for cluster. Because I could feel good your inspection for Meteor on your Iron-router / Flow-router fork repos.

My final goal is 'Use & Teach a Meteor as a small/middle size project'.
I've already done for a lot projects include a bit big size than middle one.

Meteor is great to go from the scratch, Meteor-Files make the file control super good, so now I just want to check how capacity could we make the system and stable.

So, it was just a pure question for Easy Clustering(actually forking the process whatever to use single multi-core server enough).

Sorry if it was departed too much from the purpose of this place- ;)

dr.dimitru
@dr-dimitru
@kakadais no worries. If you had experience with scaled Node.js projects, Meteor would be nearly the same experience. For single-machine clustering, or I'd say co-processing Phusion Passenger is the best solution I've seen so far with good balance between maintenance, complexity, and possibilities
kakadais
@kakadais
Thanks- Passanger was the best choice to me as well. I'll share and ask again if I found better or other approach
dr.dimitru
@dr-dimitru
@kakadais ๐Ÿ‘
Mickael Faivre-Maรงon
@micktaiwan
thanks @dr-dimitru
kakadais
@kakadais
ICNCT2021-BestPaperAward-MultimediaDB.jpeg
@dr-dimitru Actually this is just some performance analsis for real usage, but the people seems that understand this is useful enough. ;) Original paper intorudces Meteor-Files package as well, so thanks dimitru.
dr.dimitru
@dr-dimitru
@kakadais looks awesome man!
Sincere congratulations ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰
Does it available publicly? I'd love to learn more
kakadais
@kakadais
@dr-dimitru It's passed the examination but not published yet, but I think you deserve to read this so I'll send you by e-mail if you want ;). But that would be a bit embarrasing because basically this is just an announcing for usage and rough benchmark data to prove 'This is enough available for small-to-middle size project'. So I'm sure there's no Big-Learning on this paper for you haha.
I couldn't write and prove a lot of things that I asked you before on the git-hub. I will test a better performance comparison to prove this later someday-
kakadais
@kakadais
https://forums.meteor.com/t/translate-meteor-documents-and-apply/54816
And in another thread, do you have any idea for i18n for docs.meteor.com? I got some trouble to build meteor docs, and if it was successful, I believe it is not the proper way to maintain the translate the meteor docs. I thnk it should be maintained on docs.meteor.com as well by language selection.
Have you any idea for this?
I think there's a lot of volunteer for their own language including me and my team for internationally.