komalsikri Said:
"How can I transfer all the photos iPhone storage to iCloud since I have more space in iCloud but my iPhone is running out of space?"
-------
Try Clearing Space:
If you are running out space, then, prior to attempting a transfer, consider performing the following...
A. Clean TV and Music Libraries:
Remove all unneeded files from your TV and Music Libraries. Full-Movies take up 2-4GB typically, and a bunch of those would take up a load of storage, ideally. So, if you have any movies that are not needed, then delete them.
Also..
B. Clear Temporary Internet Files:
Clear your Temporary Internet Files(Cookies & Cache) of Safari:
C. Clear "Other":
Clear the storages named "Other". It basically contains unnecessary files such as caches that are used for system ease of use - all of which gather over time: How to Clear "Other" in your iPhone's Storage - Use Backup - User Tips