hooking up upload after preview