Start with originals
Export the full-resolution files from the device or photo library. If you edit RAW photos, keep the original RAW file and the finished export. A preview copied from a messaging app may be smaller or may omit information stored in the original.
Split the library into batches
Make folders for individual years or events. Upload one folder first and check its size against your available storage. Videos can take much more space than photos, so measure a representative month before transferring the whole library.
Verify the picture and sound
Download a sample photo and a longer video. Open the photo at full size and play the beginning and end of the video. Keep a separate local copy if the online copy is the only one outside the original device.