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

Form submissions stored on server when disabled but form contains file upload #10987

Open
palmersoft-uk opened this issue Oct 21, 2024 · 0 comments
Labels

Comments

@palmersoft-uk
Copy link

Bug description

I have a form, where I have set Store Permissions to false, here is the form yaml file

title: 'Register with Name Redacted'
email:
  -
    id: m0i6h4jx
    to: [email protected]
    subject: 'Name Redacted - Candidate Registration'
    attachments: true
    html: mail/candidate/registration
    markdown: true
store: false

There is a file upload field on the form

      -
        display: CV
        fields:
          -
            handle: current_cv
            field:
              max_files: 1
              type: files
              display: 'Upload your current C.V.'
              instructions: 'Upload either a .doc, .docx, or .pdf file'
              validate:
                - required

If someone submits the form then it is storing the submission on the server - Interestingly, it is not storing the file on the server.

If I remove the file field, then the submissions are not saved to the server, as expected.

Screenshot 2024-10-20 at 10 46 01

How to reproduce

Fresh statamic install

Add a form with a file upload field and ensure that the 'Store Submissions' option is not enabled.

Display the form on the front end and then submit it.

You should see that the submission is stored on the server.

Form yaml attached if it will help.
register_with_acr.yaml.txt

Logs

No response

Environment

Environment
Application Name: Anne Corder Recruitment
Laravel Version: 11.25.0
PHP Version: 8.2.23
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: annecorder.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.32.0 PRO

Statamic Addons
aerni/font-awesome: 3.0.1
aryehraber/statamic-captcha: 1.13.0
ndx/statamic-bard-color-picker: 2.0.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

@palmersoft-uk palmersoft-uk changed the title File submissions stored on server when disabled but form contains file upload Form submissions stored on server when disabled but form contains file upload Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants