Upload file to magpie