Problem/Motivation

When using S3 file system for public files, QR generation breaks when loading the logo image for QR.

Steps to reproduce

Use S3 for public files.
Upload a sample logo.
Generate a QR code -> Error

Proposed resolution

Using 'realPath()' will only work for local storage and not for remote wrappers.

Remaining tasks

Use stream wrappers with getExternalUrl() instead.

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3558969-2.patch1.14 KBvarshith
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

varshith created an issue. See original summary.

varshith’s picture

StatusFileSize
new1.14 KB

Adding a quick patch.
Will do more tests and update if needed later.

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

  • dieterholvoet committed 44e9b56c on 4.0.x
    Issue #3558969 by varshith, dieterholvoet: When using S3, QR generation...
dieterholvoet’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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