I haven't seen any articles or posts regarding this scenario. Perhaps someone has done this already successfully?
In summary, migrating all files from a folder on the server to a folder on OneDrive?
When you upload a file, you have to set the upload path to an attachment folder:
For example: $folder = $_SERVER["DOCUMENT_ROOT"]. "/documents/damagedEquipment";
In my case, I have different folders so that attachments can be uploaded to the relevant places. Now, it's easy to just recreate the folders in OneDrive (I did one as a test) and copy all those files, but then the question becomes:
How exactly do I make sure that the new OneDrive upload path point correctly to those folders on OneDrive?
Any thoughts?