I'm currently creating post by using an jquery ajax call which looks something like this
and it works just fine.
However I would like to submit an attachment to the post as well and I'm unsure just how to do that. I've added an input[type=file] with the name of attachment but I can't figure out how to send it with my request.
Is it possible to include a file with AJAX or do I have to migrate back to a native Form solution. If so, how would I go about doing it?