add upload pattern. Integrate with tinymce and structure