I just have to transfer my medical file to the uk and make my renewal in there.
Yes, but you could also do it the other way around, tell your flight school to transfer the paperwork to the Spain authorities (once you've passed your check ride, provided that your initial medical was issued in Spain as well) for somebody who's living there, that'd probably be more convenient.