Docs Index

Custom files

Last updated on Available in French

CoderPad’s Custom files feature allows an interviewer to test a candidate’s ability to manipulate data, navigate a file system programmatically, and prove their expertise in a system very similar to what they’ll encounter on the job..

⚠️Note that this custom files feature is currently not available for use with multi-file frameworks like React or Angular. For these environments you can add the file directly to the file directory when you create the question.

After you have uploaded the files, you can attach them to questions. Typical use-cases for custom files are importing data from CSVs files for analysis, or analyzing log files in text format to aid in debugging exercises.

❗ Image file types (.jpg, .png, .pdf, etc.) will not render as images in the pad. The file bytecode will be displayed instead.

If you wish to show images to a candidate, include it in the candidate instructions using Markdown instead.

Create custom file

To add a custom file for use in an interview question, first click Files in the left-side navigation bar of your dashboard. 

The files menu item is highlighted in the left nav, and the page is shown in the center of the window.

Then click Create File to upload your file. Make sure to give your file a descriptive and recognizable name that you can refer to in the question.

On the custom files page the "create file" button is highlighted in the top right of the screen.

Attach a custom file to a question

Custom Files must be associated with a question in your Question Library. Attach a custom file to a question in Step 2 – Add Code Elements of the question wizard. You can attach up to three files per question.

Accessing a file in an interview

During the interview, once a question with an attached file has been loaded, the candidate can access the file from the ./data/ directory. Here are some examples:


f = open('./data/addresses.csv', 'r') print('Filename:', print(
Code language: Python (python)


const fs = require("fs"); const csv = fs.readFileSync("./data/test.csv") console.log(csv.toString());
Code language: JavaScript (javascript)


File file = new File("./data/test.csv");
Code language: Java (java)


Code language: Ruby (ruby)

☎️ Contact support if you have any problems accessing the files.