def upload_file(filepath)
      if filepath && (file=File.open(File.expand_path(filepath), 'rb'))
        if (url=get_file_upload_url).is_a? String
          resource = RestClient::Resource.new(url)
          resource.post fileUpload: file
        end
      end
    end
def upload_file(filepath)
      if filepath && (file=File.open(File.expand_path(filepath), 'rb'))
        if (url=get_file_upload_url).is_a? String
          resource = RestClient::Resource.new(url)
          resource.post fileUpload: file
        end
      end
    end
POST 'https://filepicker.io/api/store/S3'