Only support new Transloadit template with `original_final`
Only support new Transloadit template with original_final
. Similar to what we did in https://gitlab.com/gitlab-org/gitter/webapp/merge_requests/1462
Follow-up to https://dev.gitlab.org/gitlab/gitter/webapp/merge_requests/12
Related to https://gitlab.com/gitlab-org/gitter/webapp/issues/2194
Testing strategy
- Tested with
avatar_thumbnails_dev
, https://transloadit.com/templates/edit/619863e049a411e6ab64ebd07f7ad0e3 - Setup a tunnel to the outside world. I used
ngrok
ngrok http 5000
- Copy the URL it spits out, add
/api
at the end of it and use it as theapiBasePath
here intransloadit-signature.js
so thenotify_url
is accessible
- Copy secrets from Gitter dev secrets to your own
.env
- Re-evaluate the
.env
secrets and restart the Gitter server - Create a community and upload an avatar (see it succeed)
Edited by Eric Eastwood