main.c upload