Skip to content

Download Collections as zip #273

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

Open
catarak opened this issue Jan 17, 2017 · 9 comments
Open

Download Collections as zip #273

catarak opened this issue Jan 17, 2017 · 9 comments
Assignees
Labels
Area: Design For UI/UX design updates, proposals, or feedback Feature Request Proposal for adding a new functionality Priority:Medium Moderately important, should be completed in a fair timeframe

Comments

@catarak
Copy link
Member

catarak commented Jan 17, 2017

Once #43 is implemented, it would be nice to be able to download a collection as a zip. Then, for example, a teacher could easily upload all of the files to Github.

@catarak catarak added Feature Request Proposal for adding a new functionality waiting on new design labels Feb 23, 2017
@catarak catarak added Area: Design For UI/UX design updates, proposals, or feedback Priority:Medium Moderately important, should be completed in a fair timeframe and removed waiting on new design labels Jul 11, 2017
@catarak
Copy link
Member Author

catarak commented Jul 11, 2017

screen shot 2017-07-11 at 2 00 04 pm

@catarak catarak added this to the API and Collection Features milestone May 7, 2019
@processing processing deleted a comment from nik72619c Apr 2, 2020
@slowizzm
Copy link

A download all sketches into a .zip would be nice also.

@MohdImran001
Copy link
Contributor

Hi @catarak, I'd like to work on it.

@catarak
Copy link
Member Author

catarak commented Nov 12, 2020

@MohdImran001 go ahead!

@MohdImran001
Copy link
Contributor

Hi @catarak, please review my PR.

@niemenjoki
Copy link

A download all sketches into a .zip would be nice also.

Hi @slowizzm,

I have created an unofficial implementation of this feature here.

Anyone in the p5 community can use my code if it helps adding the feature in the web editor.

@jht1493-gmail
Copy link

Thanks @jnsjknn p5-project-downloader, close to what I'm looking for.
Ideally i'd like to keep local copy of sketches in sync with online version.

@mhsh312
Copy link
Contributor

mhsh312 commented Dec 3, 2023

So currently the editor uses JSZip to make a zip file of a sketch using this controller:

export function downloadProjectAsZip(req, res) {
Project.findById(req.params.project_id, (err, project) => {
// save project to some path
buildZip(project, req, res);
});
}

The same library can be used for a Collection, since it has the items property that is an array of sketches. Iterating through the array, each sketch can be added to a single zip file.

A similar fix can be done for #1939

So, if both these issues are still open, please assign them to me. @lindapaiste @raclim

@Noorain464
Copy link

I would like to work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Design For UI/UX design updates, proposals, or feedback Feature Request Proposal for adding a new functionality Priority:Medium Moderately important, should be completed in a fair timeframe
Projects
None yet
7 participants