Fork me on GitHub
#yada
<
2019-09-06
>
pppaul18:09:00

i'm trying to get file uploading working with yada

pppaul18:09:39

so far, i haven't been able to find an example for this, and following the yada manual hasn't gotten me far either (declaring a param as java.io.File)

pppaul19:09:32

anyone here can take a look at the code and let me know what they think? is this stuff ok, or is there some better way to handle files?

pppaul19:09:02

actually, that project doesn't have forms that upload files, just a JS editor that handles that, so still not really covering my use-case 😞

malcolmsparks20:09:26

There is an upload.clj example in the yada repo

pppaul20:09:05

ok great, I'll look at that

pppaul20:09:07

I didn't find that, but I found the selfie example, is that what you were referring to?

malcolmsparks21:09:03

hope that helps

pppaul21:09:32

thanks a lot. the branch I have of Yada doesn't have that code

pppaul21:09:23

I actually have my Yada route just like in you gist

pppaul21:09:47

I'm getting an unsupported media type error

pppaul21:09:22

my form wants to send x-www-form-urlencoded

pppaul21:09:09

omg, fucking W 3 school site gave me wrong information on how to set up a form for multipart

pppaul21:09:23

got my shit working