add hooks for file uploads