You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to add to phpmailer as an attachment one file using build functions:
$mailer->addAttachment( $this->request->getFile('p.attachment')->getTempName(), $this->request->getFile('p.attachment')->getName(), 'base64', $this->request->getFile('p.attachment')->getMimeType() );
,but there is a problem because now getTempName() and getName() are returning the same value.
$this->request->getFile(...)->getName() string(52) "screenshot-adm.test.rpi 2017-07-05 11-25-14.png"
`
I think that issue is sth new and showed with last few commits, and can has relation to UploadFile constructor:
`
public function __construct(string $path, string $originalName, string $mimeType = null, int $size = null, int $error = null)
{
$this->path = $path;
$this->name = $originalName; /// ??? shoudn't be sth like $name or $tempName ?
$this->originalName = $originalName; //// ???
$this->originalMimeType = $mimeType;
$this->size = $size;
$this->error = $error;
parent::__construct($path, false);
}
`
The text was updated successfully, but these errors were encountered:
I tried to add to phpmailer as an attachment one file using build functions:
$mailer->addAttachment( $this->request->getFile('p.attachment')->getTempName(), $this->request->getFile('p.attachment')->getName(), 'base64', $this->request->getFile('p.attachment')->getMimeType() );
,but there is a problem because now getTempName() and getName() are returning the same value.
`
$this->request->getFile(...)->getTempName() string(52) "screenshot-adm.test.rpi 2017-07-05 11-25-14.png"
$this->request->getFile(...)->getName() string(52) "screenshot-adm.test.rpi 2017-07-05 11-25-14.png"
`
I think that issue is sth new and showed with last few commits, and can has relation to UploadFile constructor:
`
public function __construct(string $path, string $originalName, string $mimeType = null, int $size = null, int $error = null)
{
$this->path = $path;
$this->name = $originalName; /// ??? shoudn't be sth like $name or $tempName ?
$this->originalName = $originalName; //// ???
$this->originalMimeType = $mimeType;
$this->size = $size;
$this->error = $error;
`
The text was updated successfully, but these errors were encountered: