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

Fix an error that could occur when Asset volume for the file field has a subpath #325

Open
nikolenko-dmitriy opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nikolenko-dmitriy
Copy link

Description

  • There is the form with a file field
  • There is filesystem Local that has base part as @webroot/uploads
  • There is an asset volume Forms that uses Local filesystem but also has a subpath forms. So, the final base part for the asset volume Forms is @webroot/uploads/forms
  • Asset volume Forms is selected in Wheel Form settings as the volume folder to save uploaded form files.

Steps to reproduce

  1. Create the simple form with a file field
  2. Fill form fields on the page and also upload some file in a file field
  3. On submit the new form entry will be created and the uploaded file will be stored in @webroot/uploads/forms
  4. On the next step when Wheel Form plugin tries to send the mail, the error is triggered because it tries to find the uploaded file in @webroot/uploads folder, instead of @webroot/uploads/forms. Please see screenshots below
Image Image

Craft CMS version

5.5.3

Wheel Form version

4.0.2

@xpertbot xpertbot self-assigned this Jan 20, 2025
@xpertbot xpertbot added the bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants