Learn how to upload different types of study materials
status: 'processing'
initially and must reach status: 'active'
before they can be used in components or for grading. Processing time varies based on file size and type (typically 5-30 seconds for PDFs, longer for videos).Use the uploadFileAndProcess
or createAndProcess
methods if you need to use the material immediately after creation - they wait for processing to complete before returning.uploadFile
method which returns immediately while processing happens in the background, uploadFileAndProcess
waits until the material is fully processed and ready to use before returning.createAndProcess
method creates a material and waits for it to be fully processed before returning. This is useful when you need to use the material immediately after creation.
create
method which returns immediately while processing happens in the background, createAndProcess
waits until the material is fully processed and ready to use before returning.