Skip to content

Fix validation logic for dataset upload form#422

Open
annehaley wants to merge 1 commit into
masterfrom
fix-upload-valid
Open

Fix validation logic for dataset upload form#422
annehaley wants to merge 1 commit into
masterfrom
fix-upload-valid

Conversation

@annehaley

Copy link
Copy Markdown
Collaborator

While writing the documentation for dataset upload, I found a bug in the validation logic. The max upload size validation rule never returns undefined; it returns a string error message or true. In the definition of the computed valid variable, we had checked for undefined values. This PR changes that logic to check whether an error message string was returned.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploying geodatalytics with  Cloudflare Pages  Cloudflare Pages

Latest commit: ff2220a
Status: ✅  Deploy successful!
Preview URL: https://24ca2f5a.geodatalytics.pages.dev
Branch Preview URL: https://fix-upload-valid.geodatalytics.pages.dev

View logs

@annehaley
annehaley requested a review from BryonLewis July 20, 2026 16:05
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.

1 participant