Added support for file uploads