From 43a5c1f17f2cf2d5c85f431a89d700818a6bbf66 Mon Sep 17 00:00:00 2001 From: Walker Aldridge Date: Thu, 25 Apr 2024 21:08:48 -0500 Subject: [PATCH] Fix file upload name issues --- waifuAPIModule.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waifuAPIModule.f90 b/waifuAPIModule.f90 index 9f796cd..a841c97 100644 --- a/waifuAPIModule.f90 +++ b/waifuAPIModule.f90 @@ -89,7 +89,7 @@ function uploadFile(fileObj) result (res) close(10) seperator = '-----' // trim(stringsize) // '-----' fields = '--' // seperator // achar(13) // achar(10) & - // 'Content-Disposition: form-data; name="file"; filename="' // basename(fullfilename) & + // 'Content-Disposition: form-data; name="file"; filename="' // trim(basename(fullfilename)) & // '"' // achar(13) // achar(10) & // 'Content-Length: ' // trim(stringsize) // achar(13) // achar(10) & // 'Content-Type: octet-stream' // achar(13) // achar(10) // 'Content-Transfer-Encoding: binary' &