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

Import fails on large ZIP exports #487

Open
JoeGermuska opened this issue Apr 12, 2023 · 0 comments
Open

Import fails on large ZIP exports #487

JoeGermuska opened this issue Apr 12, 2023 · 0 comments

Comments

@JoeGermuska
Copy link
Member

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.

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

No branches or pull requests

1 participant