Import fails on large ZIP exports

Aperta
#487 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NUKnightLab/StoryMapJS

Tutte le issue di NUKnightLab/StoryMapJS

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.