getgrav / getgrav/grav-plugin-form

File upload on modular forms with hash

Open
#192 12 comments 1 reaction 1 assignee Claimed by @w00fz View on GitHub
bug
Dominant language
PHP
Stars
64
Forks
80
Avg merge
10h 13m
Merged PRs (30d)
9

Description

This issue is quite specific but it's an issue none the less. This issue affects front end forms on modular pages.

**Steps to reproduce:**

1. Create a modular page
2. Add a form to one of the pages
3. Add a `file` field to the form
4. In the form action put something like `'/my-page#contact'` (the page plus an anchor).
5. Submit the form as a user

**Expected result:**
The form submits all of the data and uploads the file to the directory you have specified. If using Email then the file should also be attached.

**Actual result:**
The form submits all of the data **except for** the file upload. Nothing uploads and if using Email then all of the data is sent **except for** the file upload.

I know this is a little obscure but I was working on it for many hours until I figured out that the file wasn't uploading because of the anchor.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.