(api-docs): Fix a bug in the example code for file upload
(api-docs): Fix a bug in the example code for file upload

The script would only work with text files and fail for binary files.
Fix includes not json parsing file content data.

figshare/user_documentation,figshare/user_documentation,figshare/user_documentation