Upload mostly working in the emulator