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

When should you use the SDK example and when should you use the 'direct' example? #39

Open
Cleop opened this issue Oct 29, 2018 · 1 comment
Assignees
Labels
help wanted If you can help make progress with this issue, please comment! question A question needs to be answered before progress can be made on this issue

Comments

@Cleop
Copy link
Member

Cleop commented Oct 29, 2018

There are two example setups in the 'examples' folder. One is an SDK and the other a 'direct' example.

I wanted to know why I might choose to use one version over the other?

@Cleop Cleop added question A question needs to be answered before progress can be made on this issue help wanted If you can help make progress with this issue, please comment! labels Oct 29, 2018
@nelsonic
Copy link
Member

Hi @Cleop, this repo is a good starting point for uploading images.
But it's far from a "turnkey" solution. (which is what it needs to be)

Direct uploads allow form submission directly from a browser to S3.
This is useful if the objective is simply to "drop" an image/file onto S3 without any further "processing".

We need to focus on the SDK use-case and we need to write an AWS Lambda Function
that receives an HTTP POST request with the image and returns a URL for the image.

To that end, I recommend you take a look https://github.com/dwyl/learn-aws-lambda
and familiarise yourself with the "hello world".

Once you feel confident that you understand what/why/how of AWS Lambda please let me know,
we need to "break down" the requirements and allocate the tasks.

Our objective with image-uploads is to make an easily re-useable feature-complete image upload utility.

@nelsonic nelsonic assigned Cleop and unassigned nelsonic Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted If you can help make progress with this issue, please comment! question A question needs to be answered before progress can be made on this issue
Projects
None yet
Development

No branches or pull requests

2 participants