export {
  MEDIA_UPLOAD_ROOT as PORTFOLIO_UPLOAD_ROOT,
  MAX_MEDIA_FILE_SIZE as MAX_FILE_SIZE,
  isManagedMediaFilePath as isManagedPortfolioFilePath,
  removeManagedMediaFile as removeManagedPortfolioFile,
  resolveMediaUploadPath as resolvePortfolioUploadPath,
  sanitizeBaseName,
} from "@/lib/media-storage";

import { saveMediaUpload } from "@/lib/media-storage";

export async function savePortfolioUpload(file: File, folder: string) {
  const savedFile = await saveMediaUpload(file, folder);

  return savedFile?.url ?? null;
}
