Support » Plugin: iOS images fixer » Plugin doesn’t work on images uploaded with fwrite on the file

  • The plugin works great when I upload files with the WordPress UI, but not when I upload files from a script:

       $uploaddir      = wp_upload_dir();
        $uploadfile     = $uploaddir['path'] . '/' . $photo_filename;
    
        $contents = file_get_contents( $photo_url );
        $savefile = fopen( $uploadfile, 'w' );
        fwrite( $savefile, $contents );
        fclose( $savefile );

    Can I use the plugin with programmatic image uploads?

  • The topic ‘Plugin doesn’t work on images uploaded with fwrite on the file’ is closed to new replies.