rebuilt JavaPlugin upload to give easier access to inputStream