Accessing different uploaded pictures to send to a backend

Accessing different uploaded pictures to send to a backend

kumamarikumamari Posts: 24Questions: 9Answers: 1

I have two upload controls on a modal for my editor plugin on my datatable. Basically, I need to have two upload controls, but I want to access via javascript or jQuery each upload input to handle those pictures and then send them via FormData to a php backend. I can't seem to find a way to add a class to a multiple upload type or a single upload type. Any thoughts on how to do this or am I missing something here?

This question has an accepted answers - jump to answer

Answers

  • kumamarikumamari Posts: 24Questions: 9Answers: 1
    Answer ✓

    Nevermind, I figured it out.

    $('.cell.upload input')[0]
    $('.cell.upload input')[1]

    for those wondering if you have two file upload inputs.

This discussion has been closed.