[Gambas-user] Help for gb.web.gui

gian bagoneo at libero.it
Mon Aug 8 22:46:07 CEST 2022


Il 08/08/22 10:04, gian via User ha scritto:
> Il 08/08/22 09:48, Safiur Rahman ha scritto:
>> Hi
>>
>> What I have been doing is to send the file to the root folder of the 
>> web server. Then you can download it easily.
>>
>> E.g. in ubuntu
>>
>> $ sudo mkdir /var/www/html/docs
>> $ sudo chmod -R a+rwx /var/www/html/docs
>>
>> Then copy to the folder
>>   Copy <source file> To "/var/www/html/docs" & File.Name(<source file>)
>>
>> Then you can download using window.Open
>>    WebForm.Exec("window.open('http://localhost/docs/ 
>> <http://localhost/docs/>" &/ File.Name(<source file>) & "'); ")
>>
>> -- 
>> Regards
>> Safiur Rahman
>>
> 
> 
> Hi,
> 
> Thank you very much for the welcome reply.
> I will immediately refer your suggestion to our friend.




Hi Safiur,

here is what our friend reports: applying your suggestion, launching the 
procedure from webform the browser page, blocks itself.
Launching it directly from a startup module (not generating the webpage 
but directly the file and the command to download it) the apache server 
gives this error:
[Mon Aug 08 19:43:48.918779 2022] [cgid:error] [pid 1089:tid 
140609880831744] [client ::1:42238] End of script output before headers: 
WebDemo.gambas

Regards
Gianluigi

P.S. He also hopes that Benoit will provide an answer to Lee's question. :-)


More information about the User mailing list