form json and fix upload

form json of form (alert) and fix upload