Support » Plugin: JSON API » Add attachment to create_post

  • 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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add attachment to create_post’ is closed to new replies.