Content disposition on S3

First part of getting a proper filename when downloading an attachment.

This PR
- [x] adds the `Content-Disposition` header when using S3 to store uploads.
- [x] fix a bug when deleting uploads when using S3
- [x] removed some warnings about already defined constants