pods icon indicating copy to clipboard operation
pods copied to clipboard

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

Open pdclark opened this issue 2 years ago • 1 comments

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"
                        }
                    ]
                }
            ]
        }
    ]
}

pdclark avatar Feb 15 '22 01:02 pdclark

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

JoryHogeveen avatar Feb 16 '22 09:02 JoryHogeveen

Fixed and tested via 776423fd52381ba61c9f9f7e69a1def201494570

sc0ttkclark avatar Sep 12 '22 15:09 sc0ttkclark