feat(chalice): revert to generate_presigned_url for file upload

This commit is contained in:
Taha Yassine Kraiem 2023-02-15 12:14:04 +01:00
parent b7c71d13a4
commit 81b9a91760
2 changed files with 3 additions and 5 deletions

View file

@ -55,7 +55,7 @@ def get_presigned_url_for_sharing(bucket, expires_in, key, check_exists=False):
)
def get_presigned_url_for_upload_deprecated(bucket, expires_in, key, **args):
def get_presigned_url_for_upload(bucket, expires_in, key, **args):
return client.generate_presigned_url(
'put_object',
Params={
@ -66,10 +66,7 @@ def get_presigned_url_for_upload_deprecated(bucket, expires_in, key, **args):
)
def get_presigned_url_for_upload(bucket, expires_in, key, conditions=None, public=False, content_type=None):
def get_presigned_url_for_upload_secure(bucket, expires_in, key, conditions=None, public=False, content_type=None):
acl = 'private'
if public:
acl = 'public-read'

1
ee/api/.gitignore vendored
View file

@ -263,5 +263,6 @@ Pipfile.lock
/chalicelib/core/saved_search.py
/app_alerts.py
/build_alerts.sh
/build_crons.sh
/routers/subs/v1_api.py
#exp /chalicelib/core/dashboards.py