Downloading file from URL works in editor but when I run it as a packaged game it doesn't work

I am using this code to recieve a save file from a server and write it into the SaveGames directory. It works in my editor but when I package the game it no longer is able to write the file. I have also tried using" URLDownloadToFile" with the exact same outcome. In the logs (see pic at bottom) it says the relative path that it is looking to load the save file from is the same as where the code is attempting to save the file to. Also, I can confirm that loading works because I can save files locally via blueprints and it is able to load them. I can also confirm that I am able to read from the SaveGames folder and upload a file from it to the server. Any ideas on what is going on? Am I not allowed to write to the SaveGames folder via c++ in a packaged game?

char* sLocalPath = TCHAR_TO_ANSI(*(FPaths::ProjectSavedDir() + "SaveGames/" + sPath));
UE_LOG(LogTemp, Display, TEXT("LOCAL PATH %s"), *(FString)sLocalPath);

writeTo = fileDir;

FHttpRequestRef Request = FHttpModule::Get().CreateRequest();

Request->OnProcessRequestComplete().BindRaw(this, &ServerFileTransfer::OnResponseFileRecieved);
Request->SetURL("http://amazonaws.com/uploads/" + FString(filename));
Request->SetVerb("GET");
Request->ProcessRequest();
FHttpModule::Get().GetHttpManager().Flush(false);
void ServerFileTransfer::OnResponseFileRecieved(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bConnectedSuccesfully)
{
	TArray<uint8> recievedFile = Response->GetContent();
	ofstream output(writeTo, ios_base::binary);
	output.unsetf(ios_base::skipws);
	if (output.is_open()) {
		for (uint8 i : recievedFile) {
			output << i;
		}
	}
	output.close();
}