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

Working with files #182

Open
1 of 4 tasks
winniederidder opened this issue May 16, 2022 · 1 comment
Open
1 of 4 tasks

Working with files #182

winniederidder opened this issue May 16, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@winniederidder
Copy link
Contributor

winniederidder commented May 16, 2022

Many exercises make extensive use of files. This feature would be nice to have support for in Papyros.
The following items describe the expected functionality:

  • Being able to upload a file from a location of choice
  • Being able to use this file in code written in Papyros
  • In Dodona, resolving the path to a file served by Dodona and loading it dynamically
  • Saving results to files and being able to download these to a location of choice

Some remarks on how this can be achieved:
When pre-loading files, a JavaScript FileSystem API should be provided to store the files as the Worker may be terminated and would lose the files. They should be set when needed. If this FileSystem is visualised, an easy way to download files could be implemented.

Resolving files dynamically will lead to asynchronous operations on a syncrhonous API, which requires sync-message functionality and proper care when overriding e.g. open.

@winniederidder winniederidder added the enhancement New feature or request label May 16, 2022
@winniederidder winniederidder added this to the later milestone May 16, 2022
This was referenced May 16, 2022
@pdawyndt
Copy link
Contributor

pdawyndt commented Apr 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants