Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread How To Upload File To VPS?
Fri, May 25 2018 4:43 AMPermanent Link

Frederick Chin

I have the EWB web server running in a Windows VPS. The program directory is C:\PRG while the data directory is C:\DATA. There is a sub-directory called IMAGES under the C:\DATA directory.

What I would like to do is to have the user select a file and the upload the file to C:\DATA\IMAGES.

I have a THtmlForm containing a TFileComboBox and TButton. The output for THtmlForm is to a TBrowser. The button has an OnClick event of THtmlForm.Submit.

When I select a text file and click the button, the TBrowser shows a "Resource /program.html not found". Am I doing this correctly?

I checked the FormSubmit example and the URL contains a "/formsubmit" value but when I enter "/program" in my URL, I get a "Resource /program not found".

--
Frederick
Fri, May 25 2018 7:11 PMPermanent Link

Frederick Chin

It seems that after restarting EWB, attempting to submit the file will result in a message that "The webpage cannot be found". Either entering "/program" in the URL property of THtmlform or leaving it blank elicits the same message.

Is it correct to say that I am expected to write a web module to handle the parameters passed by the THtmlform?

--
Frederick
Sat, May 26 2018 4:50 AMPermanent Link

Uli Becker

Frederick,

> Is it correct to say that I am expected to write a web module to handle the parameters passed by the THtmlform?

Have a look here:

https://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=5830#5830

Uli
Sat, May 26 2018 11:34 AMPermanent Link

Frederick Chin

Uli,

/*
Have a look here:

https://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=5830#5830
*/

Thanks. Appreciate it.

--
Frederick
Image