interface PostFileInterface

POST file upload

Hierarchy

Expanded class hierarchy of PostFileInterface

All classes that implement PostFileInterface

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/PostFileInterface.php, line 10

Namespace

Guzzle\Http\Message
View source
interface PostFileInterface {

  /**
   * Set the name of the field
   *
   * @param string $name Field name
   *
   * @return self
   */
  public function setFieldName($name);

  /**
   * Get the name of the field
   *
   * @return string
   */
  public function getFieldName();

  /**
   * Set the path to the file
   *
   * @param string $path Full path to the file
   *
   * @return self
   * @throws InvalidArgumentException if the file cannot be read
   */
  public function setFilename($path);

  /**
   * Get the full path to the file
   *
   * @return string
   */
  public function getFilename();

  /**
   * Set the Content-Type of the file
   *
   * @param string $type Content type
   *
   * @return self
   */
  public function setContentType($type);

  /**
   * Get the Content-Type of the file
   *
   * @return string
   */
  public function getContentType();

  /**
   * Get a cURL ready string for the upload
   *
   * @return string
   */
  public function getCurlString();

}

Members

Namesort descending Modifiers Type Description Overrides
PostFileInterface::getContentType public function Get the Content-Type of the file 1
PostFileInterface::getCurlString public function Get a cURL ready string for the upload 1
PostFileInterface::getFieldName public function Get the name of the field 1
PostFileInterface::getFilename public function Get the full path to the file 1
PostFileInterface::setContentType public function Set the Content-Type of the file 1
PostFileInterface::setFieldName public function Set the name of the field 1
PostFileInterface::setFilename public function Set the path to the file 1