$path.base gives the error "can't evaluate field base in type string", it should be "base $path"
Attach a file by drag & drop or click to upload