support for file upload through JSON