cds-snc / cds-snc/platform-forms-client

Additional file formats for file upload and fine control on types allowed

Open
#6,215 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 9h
Merged PRs (30d)
91

Description

## Current state

In the first implementation we decided to accept these file formats:
- PDF
- Word (doc, docx)
- Excel (xls, xlsx)
- CSV
- PNG
- JPG
- TXT

## Consider exploring adding additional missing requested file formats:

- JSON
- XML
- PowerPoint (PPT / PPTX)
- Email (MSG)
- MP4
- ZIP
- KML
- etc.

Considerations around https://github.com/cds-snc/platform-forms-client/issues/6300

## AND More fine control on file upload types (at the extension level)

## Source

**Feature request from support ticket:**
https://cds-snc.freshdesk.com/a/tickets/26156
http://cds-snc.freshdesk.com/a/tickets/29504

> - Other file upload types (.json, .xml, .zip)
> - More fine control on file upload types (at the extension level)

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing file-upload implementation and reviewing related issue #6300; the payload does not name a file or test. Clarify the supported formats and extension-level controls, then verify that uploads accept the agreed formats and reject unsupported extensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.