CGI_Lib and upload file,
Posted: Thu Mar 09, 2006 9:28 pm
Hi Forum,
I'm test at moment the CGI Lib Version 20060224 from Paul Leischow,
and have a little problem.
I'm use the jana server 2.0 and the upload-file example from helpfile
with this code is possible to put one file on a folder on the web server, but I'm
rescontered a error (probable in my configuration), if the file to upload bigger as 10K and if the file not a
text file then recieve a error message.
for example with exe files the upload return a error:
Content-type: application/octet-stream Failed to receive File.
on the log file of the server I can see this error:
Thu, 09.03.2006 18:22:08 : Cgi-Program did not send header-termination (\n\n). Cgi-Program: C:\Programme\Jana2\cgi-bin\CGIOrig.exe
the other error rescontred is the size of the file,
normaly this can changed with the optional paramerter:
Optional MaxPost specifies size of file allowed to receive. Default is 102400 bytes.
also:
but the same error appair.
any idea?
Thanks
JPD
I'm test at moment the CGI Lib Version 20060224 from Paul Leischow,
and have a little problem.
I'm use the jana server 2.0 and the upload-file example from helpfile
Code: Select all
result=CGI_FileIn("C:\Temp\")
CGI_Header()
If result
CGI_Out("File Received")
Else
CGI_Out("Failed to receive File")
EndIf
rescontered a error (probable in my configuration), if the file to upload bigger as 10K and if the file not a
text file then recieve a error message.
for example with exe files the upload return a error:
Content-type: application/octet-stream Failed to receive File.
on the log file of the server I can see this error:
Thu, 09.03.2006 18:22:08 : Cgi-Program did not send header-termination (\n\n). Cgi-Program: C:\Programme\Jana2\cgi-bin\CGIOrig.exe
the other error rescontred is the size of the file,
normaly this can changed with the optional paramerter:
Optional MaxPost specifies size of file allowed to receive. Default is 102400 bytes.
also:
Code: Select all
result=CGI_FileIn("C:\Temp\",10240000)
any idea?
Thanks
JPD