Added closing of F-strings on server before upload.