Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Side Upload #148

Open
sangyoo91 opened this issue Mar 23, 2017 · 5 comments
Open

Server Side Upload #148

sangyoo91 opened this issue Mar 23, 2017 · 5 comments

Comments

@sangyoo91
Copy link

Is it possible to pass the file to the server from the client and then upload to S3 from there?

@Lepozepo
Copy link
Owner

Not anymore, although if you sift through the project and look at previous versions there was a point where you could though. There were some bugs where information was sometimes lost though. What are you trying to accomplish?

@sangyoo91
Copy link
Author

I want my meteor server to upload to S3 instead of directly uploading from the client!

@sangyoo91
Copy link
Author

I want to use imagemagick to create thumbnails, and optimize images. Also, I want to do server side validations!

@Lepozepo
Copy link
Owner

Lepozepo commented May 3, 2017

This may not be the package for you buddy. This is for simple client to S3 uploads. What you are attempting to do shouldn't even happen in your Meteor server (or at least I would strongly suggest against it). Imagemagick is CPU intensive, I'd take that to its own cluster to get dealt with. Also for image manipulation you definitely want to catch the file in your cluster locally before pushing it up to S3. I think you could use lambdas + webtasks to do whatever manipulation you need to do as well.

Anyway, I won't be adding server side uploads to this package, it will be to the new NPM package s3up (still under construction). If you do want to add that to this package I will gladly take PRs.

@sangyoo91
Copy link
Author

Thank you for your kind and detailed answer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants