Problem/Motivation

Steps to reproduce

If we are trying to submit a form with an attached image.
1. The image is not attached, for example, to a letter.
The entire stack for sending letters (html) is configured and works correctly (swift mailer).
2. In this case, an error appears in the logs:
Exception: Serialization of 'Symfony \ Component \ HttpFoundation \ File \ UploadedFile' is not allowed.

Proposed resolution

A patch is included to resolve this issue.
Please take a look at the solution.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork pmfs-3204113

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

SergeyDruUa created an issue. See original summary.

aleksandr.s made their first commit to this issue’s fork.

oleksandr.s’s picture

Status: Active » Needs review

Request property cannot be serialized. Pass request stack in constructor instead of current request.

voleger made their first commit to this issue’s fork.

  • voleger committed ae677be on 1.0.x authored by aleksandr.s
    Issue #3204113 by SergeyDruUa, aleksandr.s: An error occurred while...
voleger’s picture

Version: 1.0.2 » 1.0.x-dev
Priority: Minor » Major
Status: Needs review » Fixed

Thanks, fixed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.