I finished building an app that allows users to send files between computers with the files being temporarily kept in my S3 bucket. My concern is what if a few bad apples decide to upload illegal documents to my bucket? Would I be held responsible and if so how can I avoid this? How do websites like Imgur handle this?
Taking a step back, if nobody beyond the app user need to see the data, you should encrypt it at source and decrypt at the destination. It obviously takes some work to manage keys and it depends a lot on how your app is designed.
But at least it won’t put OP in legal jeopardy and if op’s users upload illegally content, is it a good idea for op to encrypt the content to avoid detection? (Not legal advice)
As indicate: state the rules in the user agreement and track user’s acceptance of your agreement. And have mechanisms to delete any infringing content when notified to do so as well as for getting rid of infringing users if some are abusively infringing the service agreement. Encryption can also protect you in some manner by preventing you from auditing the stored content.