Hello, I am trying to complete the “File Metadata Microservice” project. My local server is up and running, and I am using a public tunnel.
When I test the endpoint manually using curl, it returns the correct JSON response structure: {"name":"package.json","type":"text/plain","size":904}
However, Test 4 (“When you submit a file, you receive the file name, type, and size in bytes within the JSON response”) keeps failing on the freeCodeCamp tests. I’ve verified that my CORS headers are active (Access-Control-Allow-Origin: *) and the form input name is correctly set to upfile.
My project live link is: https://silver-pharmacology-value-stopped.trycloudflare.com
Could anyone please assist or review this? Thank you!
I don’t think you’re the only one seeing this. If everything works when you upload a file manually and the API returns the expected JSON (name, type, and size), I’d compare your project with the user stories one more time just to rule out anything small. If that all checks out, it could be an issue with the current test suite rather than your implementation. It would be helpful if you could also share your repo or live project so others can take a closer look.