Skip to content

Commit

Permalink
Fix file upload name issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nakedmcse committed Apr 26, 2024
1 parent 0b44835 commit 43a5c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waifuAPIModule.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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' &
Expand Down

0 comments on commit 43a5c1f

Please sign in to comment.