fileName: the desired file name that will be displayed in JIRA
It will then return you the fileId. The fileId is the unique key of the document. It is also the value that is stored in JIRA as custom field value. You must keep this fileId to update your issues in the next step.
Update your File Field Customfield with previously uploaded file(s)