I downloaded a feature class with attachments from AGOL using this guide How To: Download attachments from a hosted feature service (esri.com). Then, I downloaded the attachments with the script described here How do I download all ArcGIS Online attachments fr... - Esri Community.
I had to rename all of the values in "ATT_NAME" because they were all called either Photo 1.jpg or Photo 2.jpg.
Now I have been asked whether it is possible to rename them with a name given in a field in the original feature class. I thought it might be possible since they are connected with the relationship class ("_ATTACHREL"), but can't figure out how.
I would be very grateful for any help, thanks!