Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 20:25
    Luvelnet closed #824
  • Sep 21 20:25
    Luvelnet commented #824
  • Sep 16 02:21
    s7dhansh closed #809
  • Sep 16 02:21
    s7dhansh commented #809
  • Sep 15 15:57
    jankapunkt commented #809
  • Sep 15 15:51
    jankapunkt commented #819
  • Sep 15 15:50
    jankapunkt closed #825
  • Sep 15 15:50
    jankapunkt commented #825
  • Sep 15 14:00
    dr-dimitru commented #825
  • Sep 15 13:59
    dr-dimitru commented #825
  • Sep 15 13:57
    dr-dimitru labeled #825
  • Sep 15 07:21
    jankapunkt opened #825
  • Sep 15 07:15
    jankapunkt commented #812
  • Sep 10 20:26
    dr-dimitru commented #824
  • Sep 10 18:47
    Luvelnet commented #824
  • Sep 10 18:25
    jankapunkt commented #824
  • Sep 10 18:24
    jankapunkt commented #824
  • Sep 10 18:11
    Luvelnet edited #824
  • Sep 10 18:11
    Luvelnet opened #824
  • Sep 03 07:25
    jankapunkt labeled #823
Gigacross
@Gigacross
@dr-dimitru I didn't post in Meteor Forum, I asked in gitter's meteor/meteor channel
dr.dimitru
@dr-dimitru
@Gigacross ok, checked it too. I see now. Leave a link to SO question there too.
I'll try to take a look, today
@Gigacross How it is related to Meteor-Files?
Gigacross
@Gigacross
@dr-dimitru I'm sorry its not related, but I wasn't getting any response from meteor/meteor, so I thought I'd ask here, any help is appreciated... been battling this for days now...
dr.dimitru
@dr-dimitru
@Gigacross I took a look, but I'm sorry can't help you with it, never performed anything like this, and I'm on different OS. But I see you've already got some attention as SO, hove folks will help you there. 🤞
Aaron Schafer
@hashtaggigs
I'm wanting to play around with Amazon S3 and Meteor Files. Is there any tutorials out there that will help me from start to finish implement a Meteor app that allows users to upload and delete images using these?
dr.dimitru
@dr-dimitru
@hashtaggigs have you seen our Wiki?
Aaron Schafer
@hashtaggigs
@dr-dimitru Yes, It looks great, I was just checking if one (official tutorial) aside from that... existed... something with the exact step-by-step for starters. I guess it is always best to learn working through your own project first using the Wiki.
dr.dimitru
@dr-dimitru
@hashtaggigs you can check Medium I've seen some articles there.
Unfortunately we don't provide such 1-2-3 tutorials, but we believe you should figure everything out by simply reading demos code - https://github.com/VeliovGroup/Meteor-Files-Demos
Aaron Schafer
@hashtaggigs
@dr-dimitru Great! Perfect! Thanks!
Dastari
@Dastari
Hey all, I have a query regarding storing files on S3 or Azure. In my case I've just swapped over from using a S3 Bucket to Azure Blob storage. I'm looking to utilize Azure CDN service however my query relates to the .link() function for retrieving file URL's.
Assuming i'm still following the S3 bucket demo I assume is that due to using "InterceptDownload" any requests for images will come cause my server to fetch the image, then my server deliver the image, rather than the end user getting the "actual" real URL.
Dastari
@Dastari
Thus defeating the point of using a CDN which delivers content based on end users proximity to my repositories.
ronytesler
@ronytesler
Hi
How do I make 'onAfterUpload' to be called?
ronytesler
@ronytesler
someone?
ronytesler
@ronytesler
when I add this line: import S3 from 'aws-sdk/clients/s3'; I get this error: var zeroBuffer = new Buffer(intSize); zeroBuffer.fill(0);
Buffer is not defined
ronytesler
@ronytesler
onBeforeUpload is called, but onAfterUpload is not called
I get this on the console:
[FilesCollection] [UploadInstance] [sendEOF] false
from core.js
Tathan
@Tathan1047
Hola buenas tarde una consulta acerca de este paquete alguien podria ayudarme
estoy realizando la carga del archivo y todo se ejecuta correctamente pero cuando intento descargarlo recibo un 404
y le estoy especificando la ruta exacta donde se encuentra el archivo
Sarajin
@Sarajin
Wonder if anyone is around to answer a question about ostrio:files?
dr.dimitru
@dr-dimitru
@Sarajin yes, but it's better to open new issue on GITHUB as it would get much more attention
Sarajin
@Sarajin
@dr-dimitru It wasn't really a bug or issue. Would that matter?
Sarajin
@Sarajin
I'll just type it here, and you can tell me if it should be opened on github. I'm using ostrio:file in a meteor app that uses S3 as the storage area, works great so far. I noticed it has some kind of versioning ability, but it seems more like a static list of possible versions (as the example shows different video encoding formats, etc). Can it be used as a versioning mechanic where the file can be updated with multiple versions (1,2,3) at some point in the future, only returning say the latest version of the file? I'm trying to look throught and figure out if its possible, but I dont see some kind of update function on an already existing file. Hopefully that makes sense. if it is possible, and you know of an example somewhere, that would be great.
Thanks!
dr.dimitru
@dr-dimitru

@Sarajin questions are welcome in our GitHub issues as well.

Regarding your question:

  1. There is no build-in mechanism for uploading/adding different file's versions, you got to update MongoDB record on your own/3rd-party code
  2. There is build-in mechanism to retrieve/download file using its "version"
  3. Yes, it's suitable for versioning
Sarajin
@Sarajin
@dr-dimitru Thanks for answering!
dr.dimitru
@dr-dimitru
@Sarajin 👨‍💻👍
LaloMores
@LaloMores
Hi all. I just found this package and want to know if it integrates well in mobile. The online demo works awesome in the browser (also in the mobile browser). I wonder if it integrates well with the cordova context and if there are specific instructions on what to do to achieve that which I don't seem to find (do I need to install any cordova plugins to access the file system, for example ? )
dr.dimitru
@dr-dimitru
Hey @LaloMores I recommend to check open and closed issues, especially marked as security (you will get why). This package is tested on Cordova by community members (again, go to issues). Also check this repo — https://github.com/risetechnologies/cookieTest
LaloMores
@LaloMores
Alright. Thanks @dr-dimitru It seems all is fixed though? That repo runs all tests nice and smooth in the browser, but couldn't deploy it to the phone for some reason (everything break after first apk build)
dr.dimitru
@dr-dimitru
LaloMores
@LaloMores
@dr-dimitru done
gjdanskij
@gjdanskij
Hello, i'm looking for help integrating this awesome module
I have the meteor web app and regular express js web app on the same server, so i have a question: can i add the files to Meteor-Files meteor collection from express js
is it possible to do?
Please advise, how can i properly do that
dr.dimitru
@dr-dimitru
Hello @gjdanskij , theoretically — yes. As both are running in node.js environment. But I'm not sure how much time and hassle would it cause. Need more detailed overview on your current solution
Timo Schneider
@tschneid

Hello, I'm using the S3 integration (with 1.13.0) and have a question regarding downloading files from S3.

The S3 integration is inapplicable for us when handling big files (1GB+), since s3.getObject in interceptDownload first downloads files into memory and then serves them to the client. So our machines ran out of memory and stalled. Therefore, I'd like to stream the data to the client, but the following solution does not work for me:

const stream = s3.getObject(opts).createReadStream();
fileCollection.serve(http, fileRef, fileRef.versions[version], version, stream);

Do you see any flaws in this solution? Could you give me any pointers on why this isn't working? Thanks!

Diesmaster
@Diesmaster
Hey I have a question. I am trying to show the image that is uploaded to my mongo db on a website. I tried to get the filepath and put it into the src of an img however, this gives me a broken image. Do you guys know what to do? (sorry if this is a dumb question but I am relatively new to meteor in general)
dr.dimitru
@dr-dimitru
@tschneid check out AWS:S3 official docs, look for streaming and piping, then pass readable stream to .serve() method:
fileCollection.serve(http, fileRef, fileRef.versions[version], version, readableStream);
@Diesmaster Let me know if that helps
Diesmaster
@Diesmaster
This message was deleted
Diesmaster
@Diesmaster
it worked.
thanks for the link :-P
dr.dimitru
@dr-dimitru
@Diesmaster 👍
Diesmaster
@Diesmaster
@dr-dimitru is there an way to update the meta data? I tried finding it in the manual :-)
Joseph Rousseau
@joerou
@tschneid I am now working on a project that seems to be running into the same problem you are describing with handling big files.. Did you figure out the solution to this?