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

[solution proposal] fix(ffe-file-upload-react): håndter iOS bildenavn #2512

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

hagenek
Copy link
Contributor

@hagenek hagenek commented Jan 31, 2025

  • Legg til unik navngenerering for iOS kamerabilder som alltid får navnet 'image.jpg'
  • Fiks ESLint feil med no-shadow ved å endre parameternavn
  • Forbedre tilgjengelighet med tastatur og skjermleser støtte
  • Legg til korrekt ARIA-roller og tastaturfunksjonalitet

Beskrivelse

Motivasjon og kontekst

Testing

@hagenek hagenek requested a review from a team as a code owner January 31, 2025 09:51
@hagenek hagenek closed this Jan 31, 2025
@hagenek hagenek reopened this Jan 31, 2025
@hagenek hagenek changed the title fix(ffe-file-upload-react): håndter iOS bildenavn [solution proposal] fix(ffe-file-upload-react): håndter iOS bildenavn Jan 31, 2025

// Create a unique name for iOS images
const timestamp = new Date().getTime();
const randomString = Math.random().toString(36).substring(2, 8);
Copy link

@simenaj96 simenaj96 Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bare snakker av erfaring, men kan filnavnet bli for langt? Tenker da på kjernesystemer. Bruker du TS trenger du strengt tatt ikke å legge på en random streng-verdi her.

@hagenek hagenek force-pushed the file-upload-unikt-navn-ios branch 2 times, most recently from 751b3e1 to 26e39a7 Compare January 31, 2025 10:08
…gelighet

- Legg til unik navngenerering for iOS kamerabilder som alltid får navnet 'image.jpg'
- Fiks ESLint feil med no-shadow ved å endre parameternavn
- Forbedre tilgjengelighet med tastatur og skjermleser støtte
- Legg til korrekt ARIA-roller og tastaturfunksjonalitet
@hagenek hagenek force-pushed the file-upload-unikt-navn-ios branch from 26e39a7 to 94635d6 Compare January 31, 2025 10:12
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2512.westeurope.2.azurestaticapps.net

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