$dir="./images/";
If I remove it the upload script it belongs to will return an error.
My guess is it means to move up a directory from where you currently are. 2 Periods would mean to move down
No, it means "the current directory" - after all, if you were going to move "up" a directory, which one would you move to?
The path given is equivalent to "images/"