while cleaning up removed blob files. Also refactored the code slightly for clarity.
Attach a file by drag & drop or click to upload