Skip to content

[WC-3051]: Improve file extension validation in file uploader web widget #1802

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

r0b1n
Copy link
Collaborator

@r0b1n r0b1n commented Jul 31, 2025

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

In extension, allow everything except reserved characters that are not allowed in filenames. Also improve error message to better clarify format and examples.

What should be covered while testing?

Test allowing and uploading files with extensions containing special characters (e.g., .tar-gz, .js-map, .c++).

@r0b1n r0b1n requested a review from a team as a code owner July 31, 2025 08:37
@r0b1n r0b1n force-pushed the fix/file-uploader-extension-check branch from a84d810 to 463e658 Compare July 31, 2025 09:09
gjulivan
gjulivan previously approved these changes Jul 31, 2025
@gjulivan gjulivan force-pushed the fix/file-uploader-extension-check branch from 463e658 to 4f1befd Compare August 8, 2025 09:02
gjulivan
gjulivan previously approved these changes Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants