Sorry to dig up an old post, but I can’t seem to get this to work with sub fields (through a repeater).
I know John suggested the field key on another thread but I’ve had no luck.
Just make sure that my_acf_upload_fieldname is your sub_field name (this should be a File field), not the repeater field name.