Added support for file uploading