47f7c656ba
In a custom step I needed to be able to upload a file I had previously saved to $CFG->dataroot/temp, but that was not possible. Also, the failure was not at all obvious. I have made it throw a clear exception if the file you are trying to upload does not exist.