Skip to content
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

File upload component won't accept CSV-file in Firefox #2934

Open
urb4n3 opened this issue Jan 22, 2025 · 0 comments
Open

File upload component won't accept CSV-file in Firefox #2934

urb4n3 opened this issue Jan 22, 2025 · 0 comments
Labels
kind/bug Something isn't working status/triage

Comments

@urb4n3
Copy link

urb4n3 commented Jan 22, 2025

Description of the bug

When attempting to upload a CSV file using the file upload component in the form on Firefox (v.134.0.2), the component fails to process the file. This issue does not occur in other browsers such as Microsoft Edge or Google Chrome, where the file upload works as expected. No error messages appear in the console during this process, and no network requests are triggered when the file upload fails in Firefox.

To reproduce the issue in Firefox, visit the repository at:
https://altinn.studio/editor/brg/stottetildeling-ny/overview

Steps To Reproduce

Prerequisites

There are some prerequisites to start the app correctly. Below is an outline of how to start the app in both TT02 and locally:

Testing in TT02

  1. Use the latest version in TT02.
  2. Use Personidentifikator: 03916495934.
  3. Select STILLE TILLITSFULL TIGER AS as both the actor and sender.
  4. The app is now ready to test.

Testing Locally

  1. Download and open the repository in any IDE.
  2. Access InformasjonOmStotteordning-1.json in the layouts folder and change readonly from true to false for component 1-3-id.
  3. Save your changes and launch the app with dotnet run.
  4. Before proceeding to the app, select DDG Fitness AS as the test user under Sophie Salt.
  5. On page 1, change the Organisasjonsnummer field to 313383113.
  6. The app is now ready to test.

Reproducing the Error

  1. On page 1 of the form, select "Test kompensasjon for tapt varelager - 1000002252" as the Støtteordning, then click Next.
  2. On page 2, select "Last opp CSV-fil" and upload the file:
    1000002252Test.csv
  3. Observe that the component fails to process the file.

Screenshots and Logs

  • Failure observed in the UI:

Image


Additional Information

Console Output

This error message appeared in the browser developer console when the file was uploaded:
Image


Network Tab

No new network requests were triggered when the file was uploaded:
Image


dotnet Logs

No new logs were generated in dotnet after uploading the file:
Image

@urb4n3 urb4n3 added the kind/bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
Status: No status
Development

No branches or pull requests

1 participant