server: fix the path registration for user APIs at non-root URLs
Attach a file by drag & drop or click to upload