yada

2019-09-06T18:55:00.012500Z

i'm trying to get file uploading working with yada

2019-09-06T18:55:39.013400Z

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)

2019-09-06T19:11:58.013700Z

i found this project that does file uploading https://github.com/thegeez/clj-wiki/blob/master/src/net/thegeez/wiki/fs2.clj

2019-09-06T19:12:32.014600Z

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?

2019-09-06T19:31:02.015500Z

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 😞

malcolmsparks 2019-09-06T20:41:26.016300Z

There is an upload.clj example in the yada repo

2019-09-06T20:58:05.016600Z

ok great, I'll look at that

2019-09-06T20:59:07.017400Z

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

2019-09-06T20:59:13.017600Z

@malcolmsparks

malcolmsparks 2019-09-06T21:03:03.018200Z

hope that helps

2019-09-06T21:03:32.018800Z

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

2019-09-06T21:04:23.019500Z

I actually have my Yada route just like in you gist

2019-09-06T21:04:47.020100Z

I'm getting an unsupported media type error

2019-09-06T21:05:22.020900Z

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

2019-09-06T21:13:09.021800Z

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

2019-09-06T21:13:23.022100Z

got my shit working

2019-09-06T21:13:47.022500Z

😫