Tools are provided to change the handling of file name during "operation" to "leave original file name" method.

Overview

During system operation "Use original file name as file nameIf you change the setting so that the file that was registered up to that point remains as the file name with. Tmp extension, the file registered after the change will be saved as the original file name.

This section explains how to return the name of the .tmp file registered in the past to the original file name.

Preparation

Perform the operation described belowbefore, Back up the data and back up the upload_dir folder.If processing fails, we will promptly restore it.

Also, when doing this setting (using the original file name)The OS of the production machine must be Windowsthere is.

Method of operation

Log on as an administrator and export data on the target model.At this time, please export it by invalidating "handled in Zip format".

Figure 1 Disabling and handling in Zip format and exporting

Stop the Web application built with Wagby.

Execute the following command in the wagbyapp \ bin folder.

java -jar UploadFilenameConverter.jar

Then a file "renamefile.bat/renamefile.sh" is created in the same directory. Also, an export/data_changed folder is created.

Run generated renamefile.bat (.sh on Linux system).The .tmp file is renamed to the original file name.Also, it is a good idea to check the contents of the file with a text editor before execution.

Launch the web application.

Log on as an administrator and import the model below export/data_changed.

Specifications/Constraints

If the file names registered in the model are duplicated, they are grouped together.

This tool can not be applied to Wagby Cloud.

It does not correspond to "Export in Zip format".Please perform this function for non-zip export folder.