How do i allow upload of pdf files?

I get this error:[Server!] Argument pdfFile: Got invalid value {} on prisma.createOneSubmission. Provided Json, expected String.
3 Replies
martinsos
martinsos10mo ago
Hey @Dimitrios Mastrogiannis , could you please provide more context? What have you tried, which code did you introduce to cause this error, ...
Dimitrios Mastrogiannis
i used mage web app generator. here is the relevant code in main.wasp entity Submission {=psl id Int @id @default(autoincrement()) details String fundingNeeded Int pdfFile String picture String user User @relation(fields: [userId], references: [id]) userId Int psl=}
martinsos
martinsos10mo ago
Hey @Dimitrios Mastrogiannis , unfortunately this is not enough info for me to able to help. I am guessing you are quite a beginner in web dev? If so, Mage / Wasp is probably a bit too big of a step, as it assumes quite some web dev knowledge already and requires you to fix quite a bit of the code. I would recommend maybe starting from the basics in that case. Btw we do have #🌐web-dev where you can discuss general web dev, including guidance on where to learn and what to start with.
Want results from more Discord servers?
Add your server