Datapacks on external server

I’m hosting a mc server on digital server away from home and I was wondering how I could install datapacks onto the server

I think you could drop the data packs in the world server folder through sFTP, provided that you have that port open externally.