Before adding mods, make sure to use the Minecraft Java Edition and install the Forge server type in your instance. You should also stop the server from running first. Once done, go to the File Manager and create a new directory for uploading the mods or modpacks.