IBM Support

When you create a custom plug-in to upload files to IBM Content Navigator, you must use uploadFile as the input field name

Product Documentation


Abstract

When you write a custom plug-in to upload files to IBM Content Navigator and add files to a FileNet P8 repository, be sure to use the correct file input field name in the file input form.

Content

The file input field must use the correct name, uploadFile, so that your custom plug-in's upload service uploads the correct file.

If you use a name other than uploadFile, problems occur with subsequent document uploads when a user adds or checks in a file by using IBM Content Navigator. Your custom upload service picks up the previous file that was uploaded by IBM Content Navigator, instead of the current file that you intended to add or check in.

For example, the following file input form code is valid for the upload service because it uses the correct file upload name:

<form data-dojo-attach-point="_fileInputForm" name="${id}_fileUploadForm" id="${id}_fileUploadForm" enctype="multipart/form-data" accept-charset="UTF-8" method="post" target="${id}_fileInputIFrame">
  <input type="file" required="true" id="${id}_fileInput" name="uploadFile" class="fileInput"
  data-dojo-attach-point="_fileInput" data-dojo-attach-event="onchange: onFileInputChange" />
  <iframe name="${id}_fileInputIFrame" id="${id}_fileInputIFrame"   style="display: none"> </iframe>
</form>

Use only uploadFile for the file input field name, and do not create variations such as _uploadFile.

[{"Product":{"code":"SSEUEX","label":"IBM Content Navigator"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"2.0.2","Edition":"","Line of Business":{"code":"LOB18","label":"Miscellaneous LOB"}},{"Product":{"code":"SSNVNV","label":"FileNet Content Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
IBM Content Navigator

Software version:
2.0.2

Operating system(s):
AIX, Linux, Windows

Document number:
604801

Modified date:
17 June 2018

UID

swg27041790

Manage My Notification Subscriptions