# What is upload Directory?

Upload directory is the folder where following files are stored:

a) yCrash configuration files like threshold-settings, Single Sign On,...

b) Dump files transmitted by the yc-360 script.

c) Dump files uploaded by the users

By default, the upload directory is the same directory in which the yCrash server is installed.

# How to change upload directory location?

You can change the upload directory location, by specifying the new directory location in the uploadDir system property of launch-yc-server.sh (or) launch-yc-server.bat if you are running on windows.

Example: if you want to change your upload directory to /opt/workspace/yc/uploads, then in the launch script specify this directory as shown below:

java ... -DuploadDir=/opt/workspace/yc/uploads ...
1

Note:

  • Best Practice: It's a best practice to specify the upload directory in a different location, from the directory in which yCrash server is installed. So that when you upgrade to a new version of yCrash server, you will not lose the historically uploaded incidents.

  • When running yCrash inside a Docker or containerized environment, always configure -DuploadDir using absolute paths(such as /opt/workspace/yc/uploads) that are backed by writable volumes. Avoid using relative paths (such as .), as the container working directory may not be writable and can cause file upload failures.