Upload Settings

Upload Configuration Properties describes properties for configuring several characteristics of upload.

Note: In release 5222 and later, the inclusion of individual record headers and the file header is optional. For more information, see the configuration option sftp.internal.uploader.fileFormat.headers.
Table 1. Upload Configuration Properties
Property Description
sftp.internal.uploader.path The internal path where files are exported before being uploaded. The default value is /opt/mtx/data/internal_upload.
sftp.internal.uploader.heartbeat Interval in seconds between scans for new files to be uploaded. The default value is 10.
sftp.internal.uploader.counter.min Minimum (and reset) value for the file sequence number. The default value is 0.
sftp.internal.uploader.counter.max Maximum value for the file sequence number, after which the value is reset. The default value is Integer.MAX_VALUE.
sftp.internal.uploader.counter.path The path on disk of the serialized counter. The default value is /opt/mtx/data/counter.
sftp.internal.uploader.counter.filename The filename for the serialized counter. The default value is counter.
sftp.internal.uploader.fileFormat.runningCountPadding When not null, left-pad the running count in the exported filename by the specified number of places. The running count resets to 1 when the max value is reached. For example, a padding of 3 give the sequence 001, 002 ... 999, then continue from 001. The default value is null.
sftp.internal.uploader.fileFormat.headers (Release 5222 and later) Indicates whether the individual record headers and file header should be written to the file. Options are:
  • ALL — Both the individual record headers and the file header are written.
  • NONE — No headers are written.
  • FILE_HEADER_ONLY — Only the file header is written to the file.
  • RECORD_HEADERS_ONLY — Only the individual record headers are written.
The default value is ALL.
Note: Once a file is successfully uploaded, it is deleted. If the upload.heartbeat is set to zero (0), files are not uploaded and remain in the directory.