Please follow below steps to change the attachment directory.
- Go to this path <QMetry Path>: payara41/glassfish/domains/domain1/applications/qmetry/qmetryEJB-<QMetry version>.jar
- Open dbspecialcharacters.properties file
- Set the new target path for your attachments in nfs_path field
- Copy all your existing attachments to the new target path
- Restart Payara
- payara41/bin/asadmin stop-domain
- payara41/bin/asadmin start-domain
- You are done.
Note: You need to follow same steps after every QMetry upgrade.