Instead of separate functions for the 0->1 and 1->2 transitions, just have one function.
Attach a file by drag & drop or click to upload