Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hasAttachedFile bugfix for S3 #189

Closed
wants to merge 1 commit into from
Closed

hasAttachedFile bugfix for S3 #189

wants to merge 1 commit into from

Conversation

benallfree
Copy link
Contributor

So, hasAttachedFile seems to have a bug when in use with S3.

It calls setInstance too late because the storage factory for S3 (Storage::create) calls Stapler::getS3ClientInstance, which needs the $attachedFile to have an associated instance.

This feels hacky, but fixes that problem.

@benallfree benallfree closed this Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant