add API endpoint to attach a file already on the server