-
Notifications
You must be signed in to change notification settings - Fork 46
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
Set ContentType for S3 uploads #329
Comments
Hi, thanks for using SCAR!, I have a some questions about your issue. What I don't understand is from where do you want to do it, I mean, are you uploading the files using SCAR? , like For the first option we could add an extra parameter in the CLI with the content type, for the second option, maybe we can analyze the ending of the file and automatically set the content type for a predefined set of files. Did I understand you correctly? What option would you need? Regards |
I was asking about the second option. I found where this is done, but currently it sets a blank content-type. I’ve tested hard coding it for my needs, but I am not sure what the right design is to expose it to users as a setting/configuration. |
I think we can include in the function payload a json file with some Do you think this approach could help you? |
Ok, I can do that, no problem. In return I would like to know (if you don't mind) what is your use case. This project is a part of my PhD and I'm interested in applications created by the community. You can send me an email to alpegon3 at upv.es if you don't like to write it here. |
Allow a method by which workers can set the contentType of the uploads. Not sure about the design. Perhaps a special .scar.yaml or other file name specified in the function specification that is read and used to populate ContentType in a YAML mapping?
The text was updated successfully, but these errors were encountered: