I have been strugling for a few days to be able and manage file upload with curb library that is the ruby version of curl. The thing that was most worrying and blurry was the : " Curl::PostField.file" part where the documentation is kind of fuzzy at least to my eyes. The documentation says :
Curl::PostField.file(name, local_file_name) ⇒ #<Curl::PostField...>
Which does not say prety much anything by itself and it really does not work.
So the main idea is to figure out what goes in there in the file parameter, what is the "name" and what is the local_file_name ?