gallery page working with uploads to API