docs: function pipePhotoPostHandler(){
  
      var fileNameValue =  $('#filename').val() || _photoToUse.split('/').pop() || 'photopipe_'
      var fileExtension = ''
      var hasFileExt = (/\.(gif|jpg|jpeg|png|bmp)/gi.exec(_photoToUse))
      var fileExtension = (hasFileExt && hasFileExt.length) ? hasFileExt[0] : '.jpg'
  
      fileNameValue = encodeURI( (fileNameValue + fileExtension) )
  
      // If the filebegins with a question mark, make it empty string
      if(fileNameValue.charAt(0) === '?') fileNameValue = ''
      
      console.dir(hasFileExt)
      console.log(fileExtension)    
      console.log(fileNameValue)    
      console.log(_photoToUse)
      
      $
      .post("/smoke",{
        type: _photoDestination,
        photoUrl: localStorage.imageToPipe,
        filename: fileNameValue,
        caption: $caption.val() || null
      })
      .success(function(data){ 
  
        $spin.hide()
  
        if(_photoDestination === 'download'){
          // console.dir(data)
          downloadFile(data)
        }
        else{
          // console.dir(data)
          alert('Success!')
          // window.location = "/"
        }
  
      })
      .error(function(e) {
        $spin.hide()
        if(e.status === 400) alert(e.responseText || 'Bad request.')
        if(e.status === 401) alert(e.responseText || 'Unauthorized request.')
        if(e.status === 402) alert(e.responseText || 'Forbidden request.')
        if(e.status === 403) alert(e.responseText || 'Forbidden request.')
        if(e.status === 404) alert(e.responseText || 'Images were not found.')
        if(e.status === 405) alert(e.responseText || 'That method is not allowed.')
        if(e.status === 408) alert(e.responseText || 'The request timed out. Try again.')
        if(e.status === 500) alert(e.responseText || 'Something went really wrong.')
        
        // TODO: RESTART AT STEP ONE? 0N 403 YES.
        if(e.status === 403 && (e.responseText.regexIndexOf(/twitter/gi) > -1)) window.location = "/twitter"
        if(e.status === 403 && (e.responseText.regexIndexOf(/facebook/gi) > -1)) window.location = "/facebook"
        if(e.status === 403 && (e.responseText.regexIndexOf(/instagram/gi) > -1)) window.location = "/instagram"
      })
      
      return false
      
    }