Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • AbstractMessage
  • EntityEnclosingRequest
  • Header
  • HeaderComparison
  • PostFile
  • Request
  • RequestFactory
  • Response

Interfaces

  • EntityEnclosingRequestInterface
  • MessageInterface
  • PostFileInterface
  • RequestFactoryInterface
  • RequestInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Interface PostFileInterface

POST file upload

Direct known implementers

Guzzle\Http\Message\PostFile
Namespace: Guzzle\Http\Message
Located at Guzzle/Http/Message/PostFileInterface.php
Methods summary
public Guzzle\Http\Message\PostFileInterface
# setFieldName( string $name )

Set the name of the field

Set the name of the field

Parameters

$name
string
$name Field name

Returns

Guzzle\Http\Message\PostFileInterface
public string
# getFieldName( )

Get the name of the field

Get the name of the field

Returns

string
public Guzzle\Http\Message\PostFileInterface
# setFilename( string $path )

Set the path to the file

Set the path to the file

Parameters

$path
string
$path Full path to the file

Returns

Guzzle\Http\Message\PostFileInterface

Throws

Guzzle\Common\Exception\InvalidArgumentException
if the file cannot be read
public string
# getFilename( )

Get the full path to the file

Get the full path to the file

Returns

string
public Guzzle\Http\Message\PostFileInterface
# setContentType( string $type )

Set the Content-Type of the file

Set the Content-Type of the file

Parameters

$type
string
$type Content type

Returns

Guzzle\Http\Message\PostFileInterface
public string
# getContentType( )

Get the Content-Type of the file

Get the Content-Type of the file

Returns

string
public string
# getCurlValue( )

Get a cURL ready string or CurlFile object for the upload

Get a cURL ready string or CurlFile object for the upload

Returns

string
php-coveralls API documentation generated by ApiGen 2.8.0