Closed MichalGoly closed 6 years ago
I will most likely go with the BSON and limit the upload size to 16MB as it seems like a reasonable size for a PDF presentation and will significantly simplify the implementation.
ng2-file-upload is giving me a massive headache... I'm struggling to integrate it with my project and I'm not the only one as it seems: https://github.com/valor-software/ng2-file-upload/issues/418
Uploaded the PDF, now trying to slice it into slides but run into licensing issue and awaiting response from the uni, but this will be most likely delayed by the 1inch of snow and RED weather alert in Wales.
Finally implemented presentation upload, stored it in as a Lecture model in the mongo database, split the pdf into slides and stored each in the database as a Slide model.
Each slide contains a PNG image of the slide, has a number so they can streamed in order later on, has a boolean flag to indicate whether lecturer selected it to be a quiz and most importantly has a String field containing the extracted text of each slide. This should be especially useful for the automatic detection if a slide can become a quiz in the future.
There seem to be 2 major ways to store files in the mongodb: