half-working upload feature