lxqt / screengrab

Crossplatform tool for fast making screenshots.
https://lxqt.github.io
GNU General Public License v2.0
74 stars 44 forks source link

Upload to imgur broken #28

Closed agaida closed 6 years ago

agaida commented 8 years ago

the anwer is a complete website

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>    The Imgur API - General Information</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="robots" content="follow,index" />
    <meta name="keywords" content="images, funny, image host, image sharing, reaction gif, viral images, current events, cute, visual storytelling, gif" />
    <meta name="description" content="Imgur is the best place to share and enjoy the most awesome images on the Internet. Every day, millions of people use Imgur to be entertained and inspired by funny, heartwarming and helpful images and stories from all around the world." />
    <meta name="copyright" content="Copyright 2016 Imgur, Inc." />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge;" />

    <link rel="alternate" type="application/rss+xml" title="Imgur Gallery" href="http://feeds.feedburner.com/ImgurGallery?format=xml" />
    <link rel="icon" type="image/png" href="//s.imgur.com/images/favicon-32x32.png" sizes="32x32">
    <link rel="icon" type="image/png" href="//s.imgur.com/images/favicon-96x96.png" sizes="96x96">
    <link rel="icon" type="image/png" href="//s.imgur.com/images/favicon-16x16.png" sizes="16x16">
    <link rel="apple-touch-icon-precomposed" href="//s.imgur.com/images/favicon-152.png">
    <meta name="msapplication-TileColor" content="#2cd63c">
    <meta name="msapplication-TileImage" content="//s.imgur.com/images/favicon-144.png">
            <link rel="stylesheet" type="text/css" href="//s.imgur.com/min/global.css?1460068552" />

        <link rel="stylesheet" type="text/css" href="//s.imgur.com/min/apidocs3.css?1460068552" />

            <!--[if IE 9]><link rel="stylesheet" href="//imgur.com/include/css/ie-sucks.css?0" type="text/css" /><![endif]-->

            <link rel="canonical" href="http://imgur.com/2/upload" />
        <meta property="og:url" content="http://imgur.com/2/upload" />

    <meta name="p:domain_verify" content="a1e7abe8af908cc6dfaf935dd9a20384"/>
    <meta property="og:site_name" content="Imgur" />
    <meta property="fb:admins" content="12331492,12301369" />
    <meta property="fb:app_id" content="127621437303857" />
    <meta property="al:android:url" content="imgur://imgur.com/2/upload?from=fbreferral" />
    <meta property="al:android:app_name" content="Imgur" />
    <meta property="al:android:package" content="com.imgur.mobile" />
    <meta property="al:ios:url" content="imgur://imgur.com/2/upload?from=fbreferral" />
    <meta property="al:ios:app_store_id" content="639881495" />
    <meta property="al:ios:app_name" content="Imgur" />
    <meta property="al:web:url" content="http://imgur.com/2/upload" />
    <meta name="twitter:site" content="@imgur" />
    <meta name="twitter:domain" content="imgur.com" />
    <meta name="twitter:app:id:googleplay" content="com.imgur.mobile" />
            <meta property="og:title" content="Imgur" />
        <meta property="og:type" content="website" />
        <meta property="og:description" content="Imgur: The most awesome images on the Internet." />
        <meta property="og:image" content="http://s.imgur.com/images/logo-1200-630.jpg?2" />
        <meta property="og:image:height" content="630" />
        <meta property="og:image:width" content="1200" />
        <meta name="twitter:card" content="summary_large_image" />
        <meta name="twitter:title" content="Imgur" />
        <meta name="twitter:description" content="Imgur: The most awesome images on the Internet." />
        <meta name="twitter:image:src" content="//s.imgur.com/images/logo-1200-630.jpg?2" />
        <meta name="twitter:image:height" content="630" />
        <meta name="twitter:image:width" content="1200" />
        <meta name="twitter:creator" content="@imgur" />

    <!--[if lte IE 8]><script type="text/javascript" src="//s.imgur.com/min/iepoly.js?1460068552"></script>
<![endif]-->

</head>
<body class="">
                            <script type='text/javascript'>
        var googletag = googletag || { };
        googletag.cmd = googletag.cmd || [];

        (function() {
            var gads = document.createElement('script');
            gads.async = true;
            gads.type = 'text/javascript';
            var useSSL = 'https:' == document.location.protocol;
            gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
            var node = document.getElementsByTagName('script')[0];
            node.parentNode.insertBefore(gads, node);
        })();
    </script>

<div id="topbar">
    <div class="header-center">
        <div id="header-logo">

            <a href="//imgur.com" class="logo " data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@logo@@}}">

                <span class="logo-icon"></span>
            </a>
        </div>
        <div id="main-nav">
            <ul>
                <li class="menu-btn">
                    <div class="menu-icon">
                        <div class="bar"></div>
                        <div class="bar"></div>
                        <div class="bar"></div>

                    </div>
                    <div class="link-menu">
                        <div class="test-1868-show">
                            <ul class="topics cf">
                                <li class="item bold" data-value="hot"><a href="//imgur.com/hot" class="name" data-jafo="{@@event@@:@@hamburgerTopicClick@@,@@meta@@:{@@location@@:@@header@@,@@galleryType@@:@@hot@@,@@previousSort@@:@@@@,@@previousType@@:@@@@,@@inSearch@@:@@@@}}">Most Viral</a></li>
                                <li class="item bold" data-value="new"><a href="//imgur.com/new" class="name" data-jafo="{@@event@@:@@hamburgerTopicClick@@,@@meta@@:{@@location@@:@@header@@,@@galleryType@@:@@new@@,@@previousSort@@:@@@@,@@previousType@@:@@@@,@@inSearch@@:@@@@}}">User Submitted</a></li>

                            </ul>
                            <ul class="dropdown-footer cf">
                                <li><a href="//imgur.com/blog" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@blog@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">blog</a></li>
                                <li><a href="//imgur.com/about"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@about@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">about</a></li>
                                <li><a href="//store.imgur.com" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@store@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">store</a></li>
                                <li><a href="//imgur.com/jobs"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@jobs@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">jobs</a></li>
                                <li><a href="//help.imgur.com/hc/en-us" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@help@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">help</a></li>
                                <li><a href="//imgur.com/apps"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@apps@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">apps</a></li>
                                <li><a href="//imgur.com/tos"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@terms@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">terms</a></li>
                                <li><a href="//imgur.com/privacy"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@privacy@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">privacy</a></li>
                                <li><a href="//imgur.com/removalrequest" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@deletion@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">request deletion</a></li>
                                <li><a href="//api.imgur.com" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@api@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">api</a></li>
                                <li><a href="//imgur.com/privacy#adchoices" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@adchoices@@,@@optExperimentId@@:@@2998040157@@,@@optExperimentVar@@:@@3000540343@@}}">ad choices</a></li>
                            </ul>
                        </div>
                        <ul class="test-1868-hide">
                            <li><a href="//imgur.com/jobs" class="new" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@jobs@@}}">we're hiring!</a></li>
                                                            <li><a href="//imgur.com/blog" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@blog@@,@@new@@:false}}">blog</a></li>

                            <li><a href="//imgur.com/about"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@about@@}}">about imgur</a></li>
                            <li><a href="//store.imgur.com" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@store@@}}">imgur store</a></li>
                            <li><a href="//imgur.com/apps"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@apps@@}}">imgur apps</a></li>
                            <li><a href="//api.imgur.com" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@api@@}}">developer api</a></li>
                            <li><a href="//help.imgur.com/hc/en-us" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@help@@}}">need help?</a></li>
                        </ul>
                        <div class="clear test-1868-hide"></div>
                        <div class="dropdown-footer hamburger-menu test-1868-hide">
                            <div class="terms-footer">
                                <a href="//imgur.com/tos"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@terms@@}}">terms</a>
                                <a href="//imgur.com/privacy"  data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@privacy@@}}">privacy</a>
                                <a class="small-margin-top" href="//imgur.com/privacy#adchoices" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@adchoices@@}}">ad choices</a>
                            </div>

                                <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Ffacebook.com%2Fimgur&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35" scrolling="no" frameborder="0" style="display:inline-block; border:none; overflow:hidden; height:20px; width:50px; margin-right:7px;" allowTransparency="true"></iframe>
                                <a href="https://twitter.com/imgur" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false"></a>

                        </div>
                    </div>
                </li>
                <li class="upload-button-container">
                    <a class="upload-button disabled" href="javascript:;">
                        <div class="icon icon-upload"></div>
                        <span class="upload-btn-text">upload images</span>
                        <span class="upload-queue-length">23</span>
                        <div id="upload-global-top-bar-mini-progress"></div>
                    </a>
                    <div class="creation-dropdown">
                        <div class="selection icon icon-arrow-down"></div>
                        <div class="options">
                            <ul>
                                <li class="item">
                                    <a class="creation-dropdown-upload" href="javascript:;">Upload Images</a>
                                </li>
                                <li class="item">
                                    <a href="//imgur.com/vidgif">Video to GIF</a>
                                </li>
                                <li class="item">
                                    <a href="//imgur.com/memegen" data-jafo="{@@event@@:@@makeAMeme@@,@@meta@@:{@@control@@:@@header@@}}">Make a Meme</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </li>
                <li class="random-button title-n " title="random mode">
                    <a href="//imgur.com/random" data-jafo="{@@event@@:@@header@@,@@meta@@:{@@link@@:@@random@@}}">
                        <div class="random-icon"></div>
                    </a>
                </li>
            </ul>
        </div>
        <div id="secondary-nav">
            <ul class="user-nav">
                <li id="global-search-container">
                    <form class="search-form" method="get" action="//imgur.com/search">
                        <input id="search-global-input" type="text" name="q" class="search" blur placeholder="Search images"  />
                    </form>

                    <div class="search-icon-container">
                        <div class="search-icon-container-icon"></div>
                    </div>
                </li>
                                    <li class="signin-link"><a class="" href="https://imgur.com/signin?invokedBy=regularSignIn">sign in</a></li>
                    <li id="register"><a class="" href="https://imgur.com/register?invokedBy=regularSignIn">sign up</a></li>

            </ul>
        </div> <!-- #secondary-nav -->
    </div> <!-- .header-center -->
</div> <!-- #topbar -->
<div id="cta-container-placeholder"></div>
<div id="cta-lightbox-placeholder"></div>

            <a href="javascript:;" id="upload-global-album-tipsy" class="title-nw nodisplay" title="You can't create an album with just one image"></a>

<div id="upload-global" class="popup">
    <form method="post" id="upload-global-form" enctype="multipart/form-data" action="https://imgur.com/upload">

        <div id="upload-global-buttons">
            <div id="upload-global-upload-loader" class="textbox">
                Loading...
            </div>

            <div id="upload-global-file-wrapper">
                <span class="computerIcon"></span>
                <span class="green">browse</span> your computer

                <input accept="image/*" type="file" name="Filedata" multiple="multiple" id="upload-global-file">
            </div>

            <div class="left">
                <div id="upload-global-url">
                    <span class="webIcon"></span>
                    <input type="text" id="upload-global-link-input" class="placeholder-onkeydown" title="enter image URLs" placeholder="enter image URLs" />
                </div>
            </div>

            <div class="clear"></div>

            <div id="upload-global-dragdrop">
                <span class="dragdropIcon"></span>
                <span class="green">drag and drop</span> here
            </div>

            <div class="left">
                <div id="upload-global-clipboard">
                    <div style="text-align: center"><span class="clipboardIcons">Ctrl + V</span></div>
                    <span class="green">paste</span> from your clipboard
                </div>
            </div>

            <div class="clear"></div>
        </div>

        <div class="textbox center" id="upload-global-instructions"></div>

        <!-- gallery submit vars -->
        <input type="hidden" name="current_upload" value="0"/>
        <input type="hidden" name="total_uploads" value="0"/>
        <input type="hidden" name="terms" value="0"/>
        <input type="hidden" name="gallery_type" value=""/>
        <input type="hidden" name="location" value=""/>

        <div id="upload-global-errors" class="textbox error" style="display: none;"></div>

        <div id="upload-global-queue-description" class="textbox nodisplay"></div>

        <div id="upload-global-start-upload">
            <div class="panel">
                <div>

                    <table id="upload-global-actions">
                        <tbody>
                            <tr>

                                <td width="50.4%">

                                    <div id="upload-global-album-checkbox-div">
                                        <input type="hidden" name="gallery_submit" value="0"/>

                                        <button id="upload-global-gallery-checkbox" type="button">
                                            <span class="gallery-icon"></span>share with community
                                        </button>

                                        <div id="upload-global-gallery-checkbox-overlay"></div>

                                        <input type="hidden" name="create_album" value="0"/>

                                        <button id="upload-global-album-checkbox" type="button">
                                            <span class="createAlbum-icon"></span>create album
                                        </button>

                                    </div>

                                </td>
                                <td width="49.6%">
                                    <button type="button" id="upload-global-start-button" class="button-big green" type="submit">
                                        <span class="start-btn-icon"></span>
                                        Start Upload
                                    </button>
                                </td>
                            </tr>
                        </tbody>
                    </table>

                </div>

                <div id="upload-global-album-options">
                    <table id="upload-global-album-layout">
    <tr>
        <td id="upload-global-album-td">
            <input name="album_title" type="text" title="Optional Album Title" class="placeholder-onkeydown" id="upload-global-album-title" maxlength="55" />
        </td>
    </tr>
</table>

                </div>

                <div class="textbox list">
                    <table id="upload-global-file-list-header">
                        <tr class="top-tr">
                            <td width="45" class="edit-td"><h2>Edit</h2></td>
                            <td><h2>Images <span class="upload-queue-length">(0)</span></h2></td>
                            <td width="40"></td>
                        </tr>
                    </table>

                    <table id="upload-global-file-list">
                    </table>
                                            <div class="agreement-notice">By uploading, you agree to our <a href="//imgur.com/tos" target="_blank">terms of service</a></div>

                </div>
            </div>
        </div>

        <div id="upload-global-progress-wrapper">
            <div id="upload-global-progressbar">
                <div class="progressBarBG">
                    <div class="progressBar"></div>
                </div>
            </div>
            <div id="upload-global-upload-queue"></div>

            <div id="upload-global-converting">
                <p>
                    Optimizing your large GIFs...
                </p>
            </div>
        </div>
    </form>
</div>

<div id="upload-global-FF-paste-box"></div>

<div id="hiddenDropZone" class="nodisplay"></div>

<div class="nodisplay">
    <div id="upload-global-image-formats">
         That file type is not supported!

        <div class="textbox supported-formats">
            Supported formats: JPEG, GIF, PNG, APNG, TIFF, BMP, PDF, XCF
        </div>
    </div>
</div>

<div id="upload-global-flash-container" title="upload images from your computer">
    <div id="upload-global-flash-browse"></div>
</div>

    <div id="wrapper">
        <div id="sidenav">
            <div id="padding">
                <div class="textbox">
                    <ul>
                        <li><a href="/">General Information</a></li>
                        <li><a href="/oauth2">Authentication and OAuth 2.0</a></li>
                        <li><a href="/endpoints">API Endpoints</a></li>
                        <li><a href="/models">Data Models</a></li>
                        <li><a href="/globalparams">Global Parameters</a></li>
                        <li><a href="/performancetips">Performance Tips</a></li>
                        <li><a href="/errorhandling">Error Handling</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div id="content">
            <div>
                <div class="left">
                    <h1>API no longer available</h1>
                </div>

                <div class="right">
                    <em>Updated March 30, 2016</em>
                </div>

                <div class="clear"></div>
            </div>

            <div id="" class="textbox margin-top">
                <p>As of March 28, 2016, versions 1 and 2 of the Imgur API are no longer supported.</p>

                <p>If you manage an application which relies on the API, we encourage you to migrate your application to Imgur API version 3. If you need some assistance with that, feel free to check out <a href="https://api.imgur.com/">api.imgur.com</a> for documentation. If your application uses authorization, you will also need to upgrade to oauth 2.0.</p>

                <p>If you have any questions, we’d be happy to help at <a href="mailto:api+deprecate@imgur.com">api+deprecate@imgur.com</a>.</p>
            </div>
        </div>

        <div class="clear"></div>
    </div>

            <div id="footer">
            <div id="footer-links">
    <a href="//imgur.com/jobs" class="title green strong" title="come work at Imgur" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@jobs@@}}">Love Imgur? Join our team!</a> &middot;
    <a href="//imgur.com/about" class="title" title="about imgur" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@about@@}}">about</a> &middot;
    <a href="http://store.imgur.com" class="title" title="the official imgur store" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@store@@}}">store</a> &middot;
    <a href="http://help.imgur.com" class="title" title="answers to your questions" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@help@@}}">help</a> &middot;

            <a href="//imgur.com/blog" class="title" title="the simple imgur blog" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@blog@@,@@new@@:false}}">blog</a> &middot;

    <a href="//imgur.com/removalrequest" class="title" title="request image deletion" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@deletion@@}}">request deletion</a>  &middot;
    <a href="//community.imgur.com" class="title" title="forum" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@forum@@}}">forum</a>  &middot;
    <a href="//imgur.com/tos" class="title" title="terms of service" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@terms@@}}">terms</a> &middot;
    <a href="//imgur.com/privacy" class="title" title="privacy policy" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@privacy@@}}">privacy</a> &middot;
    <a href="//imgur.com/apps" class="title" title="Official Imgur Apps" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@apps@@}}">apps</a> &middot;
    <a href="//api.imgur.com" class="title" title="documentation for our API" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@api@@}}">api</a> &middot;
    <a href="//imgur.com/advertise" class="title" title="advertise with us" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@advertise@@}}">advertise</a> &middot;
    <a href="//imgur.com/privacy#adchoices" class="title" title="ad choices" data-jafo="{@@event@@:@@footer@@,@@meta@@:{@@link@@:@@adchoices@@}}">ad choices</a>
</div>
    <div id="copyright">&copy; 2016 Imgur, Inc.</div>

<div class="clear"></div>

        </div>

            <script type="text/javascript">
            (function() {
                var roll = Math.random();
                if(roll < 0.05) {

                    (function(_,e,rr,s){
                        _errs=[s];var c=_.onerror;_.onerror=function(){var a=arguments;_errs.push(a);
                        c&&c.apply(this,a)};var b=function(){var c=e.createElement(rr),b=e.getElementsByTagName(rr)[0];
                        c.src="//beacon.errorception.com/"+s+".js";c.async=!0;b.parentNode.insertBefore(c,b)};
                        _.addEventListener?_.addEventListener("load",b,!1):_.attachEvent("onload",b)
                    })(window,document,"script","51d1e360b05ccb10310000d2");

                }
            })();
        </script>

<!--[if lte IE 8]>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
if(typeof jQuery === 'undefined') {
    document.write('<script type="text/javascript" src="//s.imgur.com/include/js/ext/jquery-1.10.2.min.js"><' + '/script>');
}
</script>
<![endif]-->

<!--[if gt IE 8]>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
if(typeof jQuery === 'undefined') {
    document.write('<script type="text/javascript" src="//s.imgur.com/include/js/ext/jquery.2.1.1.min.js"><' + '/script>');
}
</script>
<![endif]-->

<!--[if !IE]> -->
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
if(typeof jQuery === 'undefined') {
    document.write('<script type="text/javascript" src="//s.imgur.com/include/js/ext/jquery.2.1.1.min.js"><' + '/script>');
}
</script>
<!--<![endif]-->

        <script type="text/javascript" src="//s.imgur.com/min/global.js?1460068552"></script>

        <script type="text/javascript">
            Imgur.Environment = {
                isDev:         false,
                isSubdomain:   Imgur.Util.isSubdomain('imgur.com'),
                host:          'imgur.com',
                cdnUrl:        '//i.imgur.com',
                staticUrl:     '//s.imgur.com',
                signed:        false,
                auth:          {},
                recaptcha_key: '6LeZbt4SAAAAAKEsafT3QzEFp5vJ1-Z23uy5mPDz',
                msid:          '0e3c1d553071f45ae73c51aa46fc11d8',
                beta:          {
                    enabled:   false,
                    inBeta:    false
                },

                ctaConfig:     {"anonymous":[{"active":false,"type":"button","trackingName":"anonymous","localStorageName":"cta-anonymous","url":"\/","buttonText":"start exploring","title":"Welcome to Imgur!","description":"Your new home for the Internet's best visual stories.","backgroundImage":"{STATIC}\/images\/house-cta\/cta-background.jpg","newTab":false,"buttonColor":"#77ac21"}],"user":[{"active":false,"type":"button","trackingName":"campImgur","localStorageName":"cta-camp1418760143","customClass":"u-pl95","url":"\/\/imgur.com\/camp","buttonText":"Get More Details","title":"Camp Imgur, August 2015","description":"We're 50% sold out! Reserve your space now.","backgroundImage":"{STATIC}\/images\/house-cta\/cta-camp-imgur.jpg","newTab":true,"buttonColor":"#cf5033"}],"gaming":[{"active":true,"type":"button","trackingName":"gaming","localStorageName":"cta-gaming","url":"\/\/imgur.com\/t\/gaming\/top\/week","buttonText":"Check it out!","title":"You are now browsing the Internet on God Mode.","description":"Awesome unlocked! Imgur has gaming content like you wouldn't believe.","backgroundImage":"{STATIC}\/images\/house-cta\/cta-twitch.jpg","newTab":false,"buttonColor":"#4d3280"}],"facebook":[{"active":true,"type":"custom","jsReactClassName":"Facebook","trackingName":"facebook","localStorageName":"cta-fb141008","title":"Like us on Facebook!","description":"We're bringing funny to your newsfeed. Like Imgur on Facebook!","backgroundImage":"{STATIC}\/images\/house-cta\/facebook-day.jpg"}],"twitter":[{"active":true,"type":"custom","jsReactClassName":"Twitter","url":"https:\/\/twitter.com\/imgur","trackingName":"twitter","localStorageName":"cta-tw141008","newTab":true,"title":"Follow us on Twitter!","description":""}],"pinterest":[{"active":true,"type":"custom","jsReactClassName":"Pinterest","trackingName":"pinterest","localStorageName":"cta-pinterest-2015-07-14","title":"Follow us on Pinterest!","backgroundImage":"{STATIC}\/images\/house-cta\/pinterest.png","customClass":"pinterest"}],"promoted":[{"active":true,"type":"custom","jsReactClassName":"Promoted","trackingName":"promoted","localStorageName":false,"buttonText":"Learn More","title":"What Are Promoted Posts?","description":"And why am I seeing them?","backgroundImage":"{STATIC}\/images\/house-cta\/cta-promoted.jpg","url":"\/\/imgur.com\/blog\/?p=6101","newTab":true,"customClass":"pp-banner"}],"global":[{"active":false,"trackingName":"cta-survey-2016-04-01","localStorageName":"cta-survey-2016-04-01","type":"button","customClass":"u-pl260 cta-dark-text","url":"https:\/\/www.surveymonkey.com\/r\/ImgurPets","title":"Hey Imgur!","description":"Have time to take a quick survey?","newTab":true,"buttonText":"YES","buttonColor":"#000000","backgroundImage":"{STATIC}\/images\/house-cta\/cta-survey.jpg","backgroundColor":"#ffe9d3"},{"active":false,"trackingName":"inCaseYouMissedIt","localStorageName":"cta-icymi-2015-07-14","type":"button","subtype":"app","backgroundImage":"{STATIC}\/images\/house-cta\/cta-icymi.png","url":"\/\/imgur.com\/topic\/Hand_Picked\/","buttonText":"Take me there","title":"Catch up on the awesome posts you might have missed!","description":"Now featured in the Hand Picked topic.","newTab":false,"customClass":"u-pl260 icymi","buttonColor":"#252525","frontPageOnly":true},{"active":true,"type":"custom","jsReactClassName":"Newsletter","trackingName":"inCaseYouMissedItForm","localStorageName":"apps1440530195","backgroundImage":"{STATIC}\/images\/house-cta\/cta-icymi-form.png?1440530195","newTab":true,"customClass":"u-pl200"}],"global-lightbox":[{"active":true,"trackingName":"mobileApps","localStorageName":"apps1442873156","type":"custom","jsReactClassName":"GetTheApp","backgroundImage":"{STATIC}\/images\/space-med-bg.png?1433176979","newTab":true}],"side-gallery":[{"active":false,"localStorageName":"cta-side-whatisimgur","hash":"2gUGa","is_album":true,"variation":"what-is-imgur","readonly":true}]},
                experiments:   {"exp1868":{"active":false,"name":"hamburger-topics","inclusionProbability":1,"expirationDate":"2015-09-30T00:00:00.000Z","variations":[{"name":"hamburger-topics","inclusionProbability":0.5}]},"exp4053":{"active":false,"name":"recs-reddit-new","inclusionProbability":0.2,"expirationDate":"2015-12-30T00:00:00.000Z","variations":[{"name":"recs-new-users","inclusionProbability":0.5}]},"exp3025":{"active":true,"name":"virality-flavors","inclusionProbability":0.1,"expirationDate":"2015-12-17T00:00:00.000Z","variations":[{"name":"beta","inclusionProbability":0},{"name":"gamma","inclusionProbability":0},{"name":"delta","inclusionProbability":0}]},"exp4595":{"active":true,"name":"implicit-promo-optin","inclusionProbability":1,"startDate":1460294868000,"bucketFromDate":1456165800000,"bucketUntilDate":1456597800000,"expirationDate":1458757800000,"variations":[{"name":"control","inclusionProbability":1},{"name":"explicit","inclusionProbability":0},{"name":"implicit","inclusionProbability":0}]}},
                isGalleryAdmin:false,
                ppBlog: '//imgur.com/blog/?p=6101',
                l_ads: true
            };

            var imgur = Imgur.getInstance();
            imgur.init(_.merge(Imgur.Environment, {

                beta: {"enabled":false,"inBeta":false,"showInvite":false,"ctaInvite":[],"ctaWelcome":[]},
            }));

                            var uploader = Imgur.Upload.Global.getInstance(Imgur.getInstance()._);

                if(uploader._.el.$uploadGlobal.length > 0) {
                    uploader.bindPasteUpload();
                    uploader.generalInit();
                }

            imgur.generalInit();

            var _widgetFactory = new Imgur.Factory.Widget(Imgur.Environment);

            _widgetFactory.mergeConf
tsujan commented 6 years ago

Is this still an issue?

agaida commented 6 years ago

This is still an issue - the complete upload is broken, so i commented it out two years ago. It might be an idea to drop the upload part completely and use the newly implemented upload from lximage-qt instead (aka drop the old and move the new implementation to screengrab)

agaida commented 6 years ago

Hmm, second thought - i'm not really a fan of upload implementations in cpp - but i guess that introducing a python-qt module for that would be overkill

tsujan commented 6 years ago

Although I love python theoretically, I hate modules/apps written in it practically ;) They're always broken with python updates. On the other hand, c++ codes are damn stable.

I never looked into screengrab's uploader code but will do so later.

agaida commented 6 years ago

btw - found the reason for my hacks in the upload part in the changelog:

agaida commented 6 years ago

@tsujan - i fully understand your reasons not to like python - eventually my mileage varies a bit. I maintain pyfll (the siduction iso build system) for years now - as of now there are no big changes and fucked up things (python2 -> python3 will be a different beast), it ist stable. Same for calamares, the python parts are a big help - one can change or implement things on the fly in a live system. But unfortunally you are rigth, cpp is more stable.

tsujan commented 6 years ago

@agaida I like python a lot -- that wasn't a joke; a little coding in python was fun -- but had a very bad experience with py apps, especially those based on python-qt. Anyhow, it was several years ago.

agaida commented 6 years ago

ok, an successor bug is filed - we should not spend any time in this ancient upload module - we should remove it asap :sunglasses: