When uploading an image from the TinyMCE insert image dialog, upload it to the chosen directory