Uploading files to Rails server using

Is there a standard method to upload files from a form using the input file-type field?

I’ve been struggling with ember-cli-form-data but cannot get it to work properly, the server responds with 422 File can’t be blank error.