File-Manager troubleshooting
Hello, I generated a Files-Manager app using usemage.ai, I specified wanting to use MongoDB could for storing authentification credentials and user files. but it isn't implemented at all, also the file upload function isn't working. Can I get some help adding the feature and configuring mongoDB for storage. Thank you !
8 Replies
update :
Clicking on View content reults in these errors
400
probably has something to do with passing file ID
Wohooo @Tommy Shelby, you just became a Waspeteer level 1!
can I get a hand please ? @Wasp Team
@Tommy Shelby MAGE uses Wasp, and Wasp currently supports only Postgres as a database (via Prisma)
it also looks you're not passing the Filed ID in your
getFileContent
operation
have you tried doing that yet? let us know once you do.Just to be clear, Mage tries its best to generate an app for you, but it is using GPT in the background and it will be making mistakes, and some stuff might just be too complex for it.
So if you asked it to implement the whole file uplopad / management thing, that might be out of its scope, as that is a quite custom thing that is not super related to Wasp.
If you need some advice on how to implement file upload, I would recommend checking this example we have for our "open-saas" Wasp template: https://docs.opensaas.sh/guides/file-uploading/ .
It is written with this template in mind, but 90% of it is applyable on any Wasp codebase.
OpenSaaS.sh
File Uploading
Open SaaS is a free, open-source, full-stack SaaS starter kit for React + NodeJS.