my wife uses a S8plus and we set up onedrive. upload works with all folders. Then we free'ed memory on the phone. The problem is not that the pictures are not shown in the samsumg gallery anymore. With my S9+ it works find. my gallery shows also the pictures which have been removed. The "keep offline availability" features has not been set up on neither of the phones.