add file uploads handler