mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-11 01:07:39 +08:00
42 lines
773 B
PHP
42 lines
773 B
PHP
<?php
|
|
|
|
namespace GuzzleHttp\Post;
|
|
|
|
use GuzzleHttp\Stream\StreamInterface;
|
|
|
|
/**
|
|
* Post file upload interface
|
|
*/
|
|
interface PostFileInterface
|
|
{
|
|
/**
|
|
* Get the name of the form field
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName();
|
|
|
|
/**
|
|
* Get the full path to the file
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getFilename();
|
|
|
|
/**
|
|
* Get the content
|
|
*
|
|
* @return StreamInterface
|
|
*/
|
|
public function getContent();
|
|
|
|
/**
|
|
* Gets all POST file headers.
|
|
*
|
|
* The keys represent the header name as it will be sent over the wire, and
|
|
* each value is a string.
|
|
*
|
|
* @return array Returns an associative array of the file's headers.
|
|
*/
|
|
public function getHeaders();
|
|
}
|