public function EntityEnclosingRequest::removePostFile

Remove a POST file from the request

Parameters

string $fieldName POST file field name to remove:

Return value

EntityEnclosingRequestInterface

Overrides EntityEnclosingRequestInterface::removePostFile

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php, line 224

Class

EntityEnclosingRequest
HTTP request that sends an entity-body in the request message (POST, PUT, PATCH, DELETE)

Namespace

Guzzle\Http\Message

Code

public function removePostFile($fieldName) {
  unset($this->postFiles[$fieldName]);
  $this
    ->processPostFields();
  return $this;
}