exports.moveImgToTmp = (req, res, next) => {
  const {
    _storeFile,
    _birFile,
    _mayorFile,
    _dtiFile,
    _otherFile,
    _bankFile,
    _bankAuthorizationFile,
    _approvalFile,
    _governmentIDFile,
    _tinIDFile,
  } = req.files;

  const files = [
    _storeFile,
    _birFile,
    _mayorFile,
    _dtiFile,
    _otherFile,
    _bankFile,
    _bankAuthorizationFile,
    _approvalFile,
    _governmentIDFile,
    _tinIDFile,
  ];

  const uploadedFiles = files
    .filter((file) => file && file.length > 0)
    .map((file) => ({
      key: file[0].fieldname,
      fileName: file[0].filename,
      path: `https://buildhub.ph/uploads/rpafuploads/${file[0].filename}`,
    }));
  res.status(200).json({ uploadedFiles });
};
