diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
commit | 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 (patch) | |
tree | 4d541098d751d5a9acf8c12f6fb9f308ace066ac /vendor/guzzle/guzzle/src/Guzzle/Http/Message/PostFileInterface.php | |
download | flyspray-8df3db566a3a937b45ebf11adb90d265e6f5e2d4.tar.xz |
initial checking of customized version 1.0rc9
Diffstat (limited to 'vendor/guzzle/guzzle/src/Guzzle/Http/Message/PostFileInterface.php')
-rw-r--r-- | vendor/guzzle/guzzle/src/Guzzle/Http/Message/PostFileInterface.php | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/src/Guzzle/Http/Message/PostFileInterface.php b/vendor/guzzle/guzzle/src/Guzzle/Http/Message/PostFileInterface.php new file mode 100644 index 0000000..7f0779d --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Http/Message/PostFileInterface.php @@ -0,0 +1,83 @@ +<?php + +namespace Guzzle\Http\Message; + +use Guzzle\Common\Exception\InvalidArgumentException; + +/** + * POST file upload + */ +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); + + /** + * Set the post name of the file + * + * @param string $name The new name of the file + * + * @return self + */ + public function setPostname($name); + + /** + * Get the full path to the file + * + * @return string + */ + public function getFilename(); + + /** + * Get the post name of the file + * + * @return string + */ + public function getPostname(); + + /** + * 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 or CurlFile object for the upload + * + * @return string + */ + public function getCurlValue(); +} |