A simple file transfer service by Full Stack of Kotlin.
Edit config/application.yaml first if you want to change the shared root folder or upload size limit.
Run the following command:
./gradlew runThen, you can access to http://localhost:8080 or http://0.0.0.0:8080.
The server reads its external YAML config from config/application.yaml by default.
storage:
rootDirectory: "."
upload:
maxFileSizeBytes: 1073741824storage.rootDirectory: base directory exposed by the file browserupload.maxFileSizeBytes: maximum allowed upload size in bytes
You can also point to a different config file:
./gradlew run -Dfile.transporter.config=/absolute/path/to/application.yamlFor temporary overrides, these system properties are also supported:
./gradlew run -Dfile.transporter.root=/absolute/path -Dfile.transporter.upload.maxFileSizeBytes=52428800