Example: Transferring a file to a file space
Transfer a single file to a WebSphere® MQ File Transfer Edition file space. You can specify a file space as the destination of a file transfer by using the -du parameter with the fteCreateTransfer command.
About this task
When transferring a file to a file space, the WebSphere MQ File Transfer Edition Web Gateway checks whether the transfer would cause the file space quota to be exceeded. If the quota would be exceeded, an error is produced and the file transfer fails. The Web Gateway administrator can increase the size of the file space quota by submitting an HTTP request. For an example request, see the topic Example: Modifying file space configuration.
The file space quota is checked before the transfer begins. If you are using more than one agent to transfer files to the same file space, or if the Web Gateway administrator reduces the file space quota while a file is being transferred to that file space, one or more transfers might succeed even though they cause the file space quota to be exceeded.
In this example, the source file is called /tmp/Accounts.csv and is located on the same system as the source agent, AGENT_1. The destination file space john, which belongs to the user john, is located on the same system as the agent FS_AGENT. The user requesting the transfer has write access to the file space john. The agent FS_AGENT uses the queue manager FS_QM.
Procedure
fteCreateTransfer -sa AGENT_1 -da FS_AGENT -dm FS_QM -du john /tmp/Accounts.csv
The
file /tmp/Accounts.csv is transferred to the
file space john. The user john can
download this file from the file space when it is required.