title: Getting MalFormed Xml error while uploading large files to S3 using aws amplify resumable uploading
body: <p>Error :</p>
  <blockquote>
  <p>AWSS3UploadTask - error completing upload MalformedXML: The XML you
  provided was not well-formed or did not` validate against our
  published schema</p>
  </blockquote>
  <p>Code :</p>
  <pre><code>export async function uploadVideoFile(file, progressChange) {
    const fileName = `${file.name}`;
    const dirName = 'xyz'
    const key = `${dirName}/${fileName}`;
  
  
    // return;
    try {
      const upload =  await Storage.put(key, file ,{
        resumable: true,
        errorCallback(err){
          console.log(`my error : ${err}`);
  
        },
        progressCallback(prog) {
          console.log((prog.loaded / prog.total) * 100)
          progressChange((prog.loaded / prog.total) * 100);
  
  
        },
      }
      
      
      );
      return upload
    } catch (err) {
      console.log(`storage error : ${err}`);
      throw err;
    }
  }
  </code></pre>