An example of using AngularJS and Ratpack to upload images.
Before running, update src/ratpack/ratpack.properties
with the correct settings:
other.uploadDirectory
: Absolute path to the directory where files should be uploadedother.imagePath
: Path to the uploadDirectory, relative to the web root. For example, if youruploadDirectory
issrc/ratpack/public/upload
, this setting should beupload
.