Import fails on large ZIP exports
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- web-dev
Direzione di ricerca
Inizia esaminando i punti di ingresso per l’esportazione e l’importazione discussi in #304, concentrandoti su come sono rappresentati nel JSON esportato i riferimenti a media, sfondi, marker e immagini per la condivisione. Riproduci il caso di uno ZIP di grandi dimensioni e verifica che un’esportazione contenente solo le immagini referenziate possa essere importata senza superare il limite di upload di 20MB.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In discussion in #304 we found that StoryMap creates export ZIP files containing all files associated with a project, sometimes creating a ZIP which is larger than the 20MB maximum upload supported by the system. Thus, the export cannot be re-imported.
In this specific case, there were many files in the export which were not in active use in the storymap. This is unsurprising, since there's no "delete" functionality. It's also the case that many of the images were much larger than they reasonably needed to be for display in a storymap which would almost certainly have been smaller (in pixel dimensions) than the image file.
The workaround was to create a new ZIP, omitting all image files which weren't referenced in the JSON files in the export. This imported without any issue.
We might consider filtering the images part of the export process to only include images which are actively used in the media, background, marker, or sharing image locations. It's possible in theory that we'd still create an export larger than 20MB. I don't really think it's a good idea to increase that threshold, but then, I don't know what we'd do besides tell people "sorry."
I suppose we could also consider downsampling uploaded images, although that should go in its own issue if we decide it's the right way to go.
- Lingua principale
- JavaScript
- Stelle
- 248
- Fork
- 61
- Merge medio
- 1m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NUKnightLab/StoryMapJS
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
NUKnightLab/StoryMapJS#507 ·
-
Visual glitches Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
NUKnightLab/StoryMapJS#506 ·
-
Provide a npm distribution Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
NUKnightLab/StoryMapJS#505 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 50/100
NUKnightLab/StoryMapJS#495 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
NUKnightLab/StoryMapJS#488 ·
Tutte le issue di NUKnightLab/StoryMapJS
Issue simili
-
code-quality refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100