 
             tryLogout()
         else
+            gutil.log('Request fail 7')
             handleRequestError(err, httpResponse)
 
 gulp.task 'pull', ->

        if !err and httpResponse.statusCode is 200
            gutil.log('Successfully logged out'.green)
        else
            handleRequestError(err, httpResponse)

checkIfImageExists = (link, updateImageStores, tryLogout, cb) ->

        return "Uploaded #{file} → #{url}"

# **postEdit**
postEdit = (url, file, page, type, multiform, jar, tryLogout, updateImageStores, link) ->

    if type isnt 'image'
        postUrl = url + '?action=submit'
    else
        postUrl = url

    # gutil.log(multiform)

    request {
        url      : postUrl
