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

File field only saves one file when multiple files enabled & uploaded #6450

Closed
pdclark opened this issue Feb 15, 2022 · 2 comments
Closed

File field only saves one file when multiple files enabled & uploaded #6450

pdclark opened this issue Feb 15, 2022 · 2 comments
Assignees
Labels
Component: DFV Issues related to the Pods DFV JS that powers form fields Keywords: Regression Type: Bug
Milestone

Comments

@pdclark
Copy link
Collaborator

pdclark commented Feb 15, 2022

Description

  • Extend Media with a file field that allows multiple file uploads
  • Attempt to associate multiple files to a Media attachment.
  • See that only one of the file relationships is saved.

Reported here: https://wordpress.org/support/topic/issue-bug-with-file-image-video-field/

Version

2.8.9

Testing Instructions

No response

Screenshots / Screencast

No response

Possible Workaround

No response

Site Health Information

No response

Pods Package

{
    "meta": {
        "version": "2.8.9",
        "build": 1644889192
    },
    "pods": [
        {
            "name": "media",
            "id": 75,
            "label": "Media",
            "description": "",
            "type": "media",
            "storage": "meta",
            "object": "media",
            "_migrated_28": "1",
            "required": "0",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 76,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "files",
                            "id": 77,
                            "label": "Files",
                            "description": "",
                            "weight": 0,
                            "type": "file",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "file_format_type": "multi",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_upload_dir": "wp",
                            "file_edit_title": "1",
                            "file_show_edit_link": "0",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_type": "images",
                            "file_field_template": "rows",
                            "file_add_button": "Add File",
                            "file_modal_title": "Attach a file",
                            "file_modal_add_button": "Add File",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1"
                        }
                    ]
                }
            ]
        }
    ]
}
@JoryHogeveen
Copy link
Member

@sc0ttkclark Might be react? If not, then you can assign me!

@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.8.11, Pods 2.8.12 Feb 21, 2022
@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.8.12, Pods 2.8.13, Pods 2.8.14, Pods 2.8.15 Apr 8, 2022
@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.8.17, Pods 2.8.19 May 11, 2022
@sc0ttkclark sc0ttkclark added the Component: DFV Issues related to the Pods DFV JS that powers form fields label Aug 8, 2022
@sc0ttkclark sc0ttkclark removed this from the Pods 2.9.3 milestone Aug 18, 2022
@sc0ttkclark sc0ttkclark added this to the Pods 2.9.4 milestone Aug 18, 2022
@sc0ttkclark
Copy link
Member

Fixed and tested via 776423f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DFV Issues related to the Pods DFV JS that powers form fields Keywords: Regression Type: Bug
Projects
Status: Done
Development

No branches or pull requests

4 participants