Upload an image to a folder

reference_folder is an item of type Group created on the previous example.

media = reference_folder.item.append(type='Media', path=r"/mnt/project/image.jpg")

Don't forget to replace the path with the actual path of the file you want to upload.