Title: Error Message &quot;Please upload image only&quot;
Last modified: August 30, 2016

---

# Error Message "Please upload image only"

 *  [David Scott](https://wordpress.org/support/users/david-scott/)
 * (@david-scott)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/error-message-please-upload-image-only/)
 * Plugin doesn’t work.
    I get Error Message “Please upload image only”. Nothing
   gets loaded into the canvas?
 * This is the same error was posted a year ago “Errormessage when using NIC photo
   editor plugin – by Wandering”.
    The answer by Kundan Yevale [Plugin Author] was
   to “use the latest version of WordPress”.
 * I’m using WordPress Version 4.2.2 25Jun2015.
    Is there a fix???
 * [https://wordpress.org/plugins/nic-photo-editor/](https://wordpress.org/plugins/nic-photo-editor/)

Viewing 1 replies (of 1 total)

 *  [neowebsolution](https://wordpress.org/support/users/neowebsolution/)
 * (@neowebsolution)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-message-please-upload-image-only/#post-6266343)
 * Hello , i know where is problem please open the file add_image_iframe.php on 
   line no 130 replace
 *     ```
       if (jQuery(html).find("img").length == 0) {
       		alert('Please upload image only');
             		tb_remove();
             		return false;
             }
   
        imgurl = jQuery('img',html).attr('src');
       ```
   
 * to
 *     ```
       var re = /<img[^>]+src="http:\/\/([^">]+)/g
       var results = re.exec(html);
   
       	if (!results[1]) {
       		alert('Please upload image only');
             		tb_remove();
             		return false;
             }
   
        imgurl = "//"+results[1];
       ```
   
 * It begain to work working for me

Viewing 1 replies (of 1 total)

The topic ‘Error Message "Please upload image only"’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nic-photo-editor_6b75bd.svg)
 * [NIC Photo Editor](https://wordpress.org/plugins/nic-photo-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nic-photo-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nic-photo-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/nic-photo-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nic-photo-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nic-photo-editor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [neowebsolution](https://wordpress.org/support/users/neowebsolution/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-message-please-upload-image-only/#post-6266343)
 * Status: not resolved