Re: [twsocket] how to make browser upload a file

2011-10-31 Thread Wilfried Mestdagh
Hi, I found out if I specify enctype="multipart/form-data" it upload the file. But how do I get the file content in THttpSrv? It seems not to be with ExtractURLEncodedValue. Socketspy shows me that it upload: -265001916915724 Content-Disposition: form-data; name="data

[twsocket] how to make browser upload a file

2011-10-31 Thread Wilfried Mestdagh
Hi, I try to upload a file in THttpSrv, but in ExtractURLEncodedvalue, I only have 'datafile' containing the filename. If I try with socketspy in between the I do not see any upload of the file (only datafile=filename.ext). So I think I'm missing something. This is the generated HTML code to uplo