Java upload method implemented & working