Add more logging to help debug. Also refactor several functions to improve reusability.
Attach a file by drag & drop or click to upload