I've finally found what is the problem :
In my first page, I have 2 fields in my form :
<input type="file" name="fichier" size=40 value="">
<input type="hidden" name="rep" value="">
The error occurs on the following line :
W_rep = formfield("rep")
But it doesn't appear if I change the order of These field in my page :
<input type="hidden" name="rep" value="">
<input type="file" name="fichier" size=40 value="">
Is it because, Foxweb, first, extract all value of the fields declared above
mine, before extract my field ?
Sent by FoxWeb Support on 10/06/2003 05:20:18 PM:
This is a VFP error, whose definition is as follows:
Insufficient stack space (Error 1308)
One of the following has occurred:
- Your program is too recursive.
- Your program is too complex and is nested too deeply.
- An error in Visual FoxPro.
I am not sure why this error would oddur in this situation, unless your script that calls the FormField function is too complex. Of course the last bullet item (an error in Visual FoxPro), indicates that this may be due to a VFP bug.
From what you wrote in your original message, it seems that the problem only occurs when you upload large files. This may be an indication that the problem is not related to your code, but rather to a combination of a VFP limitation and insufficient memory on your server.
FoxWeb Support Team support@foxweb.com email |
Sent by Jphilippe LAPORT on 10/06/2003 01:45:02 AM:
Hi,
Finally, I've succeed to retrieve an errors.dbf, running on Window 2000.
We have the same error on this Server, using the same program.
The error obtained is in French :
Message : Espace de pile insuffisant.
(I think the English traduction is : "Stack overflow" )
Errnum :1308
Program : FORMFIELD WWW_READ.FXP
Prev_prog : SAVEDOC C:\INETPUB\SANDIWEB\CGI-SHL\CHARGEFILE
Lineno : 339
Line : ...
Sent by FoxWeb Support on 09/11/2003 03:42:52 PM:
The FoxWeb Error Log always contains additional information about the "Error in FoxWeb Foundation Program" message. If the information you find is not sufficient, please post it here, or send us a copy of the log. We will need errors.dbf, errors.cdx and errors.fpt.
By the way, your form tag is incorrect. The correct syntax is:
<form ENCTYPE="multipart/form-data" method="post" action="save@chargefile.fwx"> |
FoxWeb Support Team support@foxweb.com email |
Sent by Jphilippe LAPORT on 09/11/2003 08:23:56 AM:
Hi,
I have a problem with Foxweb 1.29 :
I use a script which upload Files from Clients to the Server. Here is a part of my script :
html_out = 'content-type=text/html'
+'...'
...
<input type="file" name="fichier" size=40 value="">
...
</form>
...
Here is my procedure save:
Proc save
...
W_fichier= formfield("fichier")
W_file = formfield("fichier", ,2)
W_type = formfield("fichier", ,3)
W_rep = 'c:\temp\'
W_res = WriteFile("&W_rep.image\&W_file",W_fichier)
If !W_res
html_out = procedureError
return
endif
...
EndProc
These scripts work very well, here. But At client's home, I have this error when the file to upload is more than 200 ko :
Error in CGI data Server
There was an error during the interpretation of your request.
Error #: 0
Message: Error in FoxWeb Foundation Program
Program: FoxWeb
Foxweb is working on Windows NT4 Workstation.
Can somebody help me ?