Backend works when trying to use Postman to request the API endpoint. File upload in the frontend also works since the data is parsed properly as multi-part form data. The issue is the frontend seems to cannot directly send request to backend and is outright rejected.
Create folder function now properly works to send data to the backend and is reflected in the database.
The frontend still displays hierarchy from dummy data.