aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.65k stars 1.01k forks source link

Multiple file upload? #1021

Open montao opened 5 years ago

montao commented 5 years ago

Is it possible to upload multiple files with the same request using chalice? If yes, how can we do it?

stealthycoin commented 5 years ago

Not sure what you are asking exactly. Chalice just deploys python code to lambda and does all the configuration wiring for you to other services. Any file uploading in your application is just a python code question unless I am misunderstanding?

montao commented 5 years ago

Usually a framework, for example in other clouds like google cloud for example, offers a files object which is an array of the uploaded files e.g. in google cloud one can do this

for upload in self.get_uploads():

I'm currently using the serverless framework to upload files and I must manually parse the request which is hacky and tricky. It would be easier if done like above.

tedivm commented 5 years ago

To reword and extend this in a chalice/flask friendly way-

It would be nice if the Request object in Chalice matched the Request object in Flask and included the following properties (as defined in flask):

stealthycoin commented 5 years ago

Ahh got it. Yea that makes sense as something to work toward.