Don't allow submitting of huge files
See original GitHub issue@ellisonbg apparently had a student submit a 1TB file which filled up the drive of the server and crashed it. It seems like it would be worthwhile for nbgrader submit
to check the file size and either exclude files that are very large or at least prompt the user “are you sure?”
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
File upload form does not work with large files - Stack Overflow
A few text inputs, a file upload input, a reCAPTCHA, and a submit button. Under normal use, I can upload a small file...
Read more >About large files on GitHub
GitHub limits the size of files you can track in regular Git repositories. Learn how to track or remove files that are beyond...
Read more >11 Best Ways to Transfer, Share or Send Large Files in 2022
Discover the 11 Best Ways to Transfer, Send or Share large files. Pros & Cons, Free & Paid tools. Services you can start...
Read more >Send large files with Outlook - Microsoft Support
Send large files by using file sharing, cloud services, or other solutions for working around file size limits in Outlook.
Read more >Gmail attachment limit: 3 simple ways to send large files
How? If you're using Windows, simply right-click the file, select 'Send to' , and then choose the 'Compressed (zipped) folder'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Deduplicating sounds interesting but as jhamrick says, easier said than done.
This made me realize there are two use cases (at least for us), which means there may need to be two separate ways to configure:
Copying data files to the student, which are needed to run the assignment. My recommendation to teachers for our system is to not do this, use a shared course data directory that is mounted in all student environments. However, this makes copying assignments out for running harder because the assignment directory is not self-contained.
Second is coping things back to the instructors. We have one course whose notebooks train machine learning models and write the models to files. These need to be copied back to the instructors (but not the data files!).
And of these cases, none of them need to be copied back yet again for the feedback step.
So for each of these steps, there are possible size limits, blacklists, whitelists, etc…
(And as a bonus, make the student-side and possibly insturctor side configurable without nbgrader_config.py… this configuration somehow embedded in the assignment directories…)
Note from @sefriol: if data gets copied to students and back, students can modify it which may affect the grading process…