If we ignore the fact that the form code you posted has the following line -
and produces a $_FILES['uploadedfile'] array variable and not a $_FILES['image'] array variable, the next most obvious reason why this code does not work is that the submit button in the form does not have a name = "..." assignment and the following line in the PHP code will never be true -
The reason why I am only giving a fix-this-next-hint each time, is that you won't learn much if I go through the code and find/fix everything. Part of programming, is troubleshooting. If you have to wait around a day for someone to post an answer to each of your problems, it is going to take you a very long time to produce working code.
All functions and programs do three things - they accept inputs/data, perform processing on those inputs/data, and output results/data. If you are not getting the results from your program that you expect, I recommend starting at the beginning and echoing/printing the input/data it is operating upon at each decision making point to make sure that it is what you and the program logic expect.