server path

This commit is contained in:
CHIEFSOFT\ameye
2025-12-28 14:34:21 -05:00
parent 8ba167a17c
commit f6c2b1129d
+2 -2
View File
@@ -3,7 +3,7 @@ import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
import {useState, useRef} from "react";
export default function MyMedia() {
const basePath = process.env.REACT_APP_MAIN_API
const [selectedFile, setSelectedFile] = useState(null);
const [message, setMessage] = useState('');
@@ -28,7 +28,7 @@ export default function MyMedia() {
try {
// Replace with your actual API endpoint URL
const apiEndpoint = 'https://devapi.mermsemr.com/upload/webfiles';
const apiEndpoint = basePath + '/upload/webfiles';
const response = await fetch(apiEndpoint, {
method: 'POST',
// The browser automatically sets the 'Content-Type' header to