Develop a File Server¶
Prerequisite: Reach level 16+ and read the Drive article.
Create a simple Lightning App (App) that allows users to upload files and list the uploaded files.
Here is a recording of the final App built in this example, tested with pytest.
In order to create this App, we need to develop two components and an App:
A File Server Component that gives you the ability to download or list files shared with your App. This is particularly useful when you want to trigger an ML job but your users need to provide their own data or if the user wants to download the trained checkpoints.
A Test File Server Component to interact with the file server.
An App putting everything together and the App’s associated pytest tests.
Step 2: Implement the File Server upload and list files methods
Add the core functionalities to the Component
Step 3: Implement a File Server Testing Component
Create a Component to test the file server