Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Import fails on large ZIP exports

Đang mở
#487 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
web-dev

Hướng nghiên cứu

Bắt đầu bằng cách xem xét các điểm vào export và import được thảo luận trong #304, tập trung vào cách các tham chiếu đến media, background, marker và sharing image được biểu diễn trong JSON đã export. Tái hiện trường hợp ZIP lớn và xác minh rằng một bản export chỉ chứa các hình ảnh được tham chiếu có thể được import mà không vượt quá giới hạn upload 20MB.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
248
Fork
61
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NUKnightLab/StoryMapJS

Tất cả issue của NUKnightLab/StoryMapJS

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.