Fixed upload again, working with getting user_id in session. Also Cross site requests work now. "Site to our API".