From 13e2137930959ef378dca46b1a42f900d6dd69c1 Mon Sep 17 00:00:00 2001 From: JulesB <62644404+Youllou@users.noreply.github.com> Date: Thu, 30 May 2024 15:59:56 +0000 Subject: [PATCH] fixed upload --- src/Pages/JsonPage/Json.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Pages/JsonPage/Json.tsx b/src/Pages/JsonPage/Json.tsx index c202ffeb..f6fdb360 100644 --- a/src/Pages/JsonPage/Json.tsx +++ b/src/Pages/JsonPage/Json.tsx @@ -8,23 +8,25 @@ function JsonPage(){ const [form, setForm]=useState({}) const [fetchError, setError]=useState(null) const location = useLocation(); - const files:File[] = location.state.data[0]; + const files:File[] = location.state.data; const [uploadStarted, startUpload] = useState(false); - const api_url = "http://localhost:5000" + const api_url = "https://shiny-goggles-75q6p5xj4wwfp6gg-5000.app.github.dev/" const upload_all = async ()=>{ + const res = [] for(let i=0; i{ if(!uploadStarted){