You can use one of the free Samsung firmware update tools to download the Samsung SM-A310F firmware file to your desktop which can then be flashed with the Odin flashing tool.