Only allow uploading JSON, CSV or XML files in the file field for MigrateSourceUiForm

Created on 31 January 2024, 10 months ago
Updated 1 August 2024, 4 months ago

Problem/Motivation

Currently, the file field on MigrateSourceUiForm has no extension restriction. The user of the form can upload any file which can be a security risk.

Steps to reproduce

Proposed resolution

Only allow uploading JSON, CSV or XML files in the file field for MigrateSourceUiForm

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇰Pakistan jibran Sydney, Australia

Live updates comments and jobs are added and updated live.
  • Security improvements

    It makes Drupal less vulnerable to abuse or misuse. Note, this is the preferred tag, though the Security tag has a large body of issues tagged to it. Do NOT publicly disclose security vulnerabilities; contact the security team instead. Anyone (whether security team or not) can apply this tag to security improvements that do not directly present a vulnerability e.g. hardening an API to add filtering to reduce a common mistake in contributed modules.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024