Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 

b_b

@b_b
http://blog.eliaz.fr
RSS: b_b
tous les messages de b_b
  • @b_b
    b_b @b_b PUBLIC DOMAIN 24/04/2025
    1
    @arno
    1

    Building An #Offline Friendly #Image #Upload System — Smashing Magazine
    ▻https://www.smashingmagazine.com/2025/04/building-offline-friendly-image-upload-system

    https://files.smashing.media/articles/building-offline-friendly-image-upload-system/1-upload-system-flow-chart.png

    - The user selects an image.
    The process begins by letting the user select their image.
    – The image is stored locally in #IndexedDB.
    Next, the system checks for network connectivity. If network connectivity is available, the system uploads the image directly, avoiding unnecessary local storage usage. However, if the network is not available, the image will be stored in IndexedDB.
    – The #service_worker detects when the network is restored.
    With the image stored in IndexedDB, the system waits to detect when the network connection is restored to continue with the next step.
    – The background sync processes pending uploads.
    The moment the connection is restored, the system will try to upload the image again.
    – The file is successfully uploaded.
    The moment the image is uploaded, the system will remove the local copy stored in IndexedDB.

    b_b @b_b PUBLIC DOMAIN
    Écrire un commentaire

thèmes

  • #Image
  • #IndexedDB
  • #Offline
  • #service_worker
  • #Upload
Propriété intellectuelle Recommandations API