Adding format attr to user uploaded data