This following line of code contains where is your file added.
new File(name + "-uploaded")
Since you didn't specify a complete path it will be saved on the java classpath were you started the application from.
For production systems you should specify it at a certain shared storage where files are got backuped regularly and the size of the storage are suitable of the kind of files you are uploading.
If you are using windows here is an example for you:
new File("d:/yourApplicationName/" + name + "-uploaded")
If you are using linux here is an example for you:
new File("/home/yourApplicationName/" + name + "-uploaded")
Note: You should create the directory "yourApplicationName" first or you will get an exception.