mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:43:39 +03:00
moved the lseek() and stat() magic defines to setup.h and now take advantage
of struct_stat in formdata.c as well, to support formpost uploads of large files on Windows too
This commit is contained in:
parent
ec8ee4404b
commit
4f5a6a33b4
3 changed files with 9 additions and 9 deletions
|
|
@ -835,7 +835,7 @@ static CURLcode AddFormData(struct FormData **formp,
|
|||
/* Since this is a file to be uploaded here, add the size of the actual
|
||||
file */
|
||||
if(!strequal("-", newform->line)) {
|
||||
struct stat file;
|
||||
struct_stat file;
|
||||
if(!stat(newform->line, &file)) {
|
||||
*size += file.st_size;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue