Autoconfig righst when upload a resource in tinymce