Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

292
Visualizações
Where do I store user uploaded images, in the browser without requiring a server

I want user to select an PNG/JPEG image file from his computer, and everytime he opens the webpage, I want image to be available. A few image files can be saved, total of 250MB.

I've seen solution to save the base64 data url to local storage, but

I suspect max storage limit for local storage is 5MB What is the max size of localStorage values? . So that wouldn't work.

I've also seen a solution to automatically load files from disk: https://stackoverflow.com/a/61705781/3994249. But it requires user prompt, which is a nuisance.

I suspect IndexedDB might be a solution, but I am unsure if this is a good practice. I don't want to overkill by uploading the images into a backend. What other options do I have.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda