Question: how to transfer files from hard drive to icloud?
Answer: Select the file(s) or folder(s) as usual in the Finder of Mac OS X.
Open a new Finder window and choose 'iCloud Drive' from the sidebar.
While dragging the selected file to iCloud Drive start to hold down the Option key.