Got most of my information from here: Ruby rest-client file upload as multipart form data with basic authenticaion
My code:
def arcaUpload(url, refnr,