Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread TFileUploadButton help please
Fri, Jun 14 2013 9:26 AMPermanent Link

Claudia Borsel

From blog: "TFileUploadButton control for uploading files has been added, and it works seamlessly with the new form submittal functionality"

I want to upload an Excel file, so I set the MimeType of the FileUploadButton to:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
This works outside the IDE in Opera and Chrome, to have the file selection box filtered, in FF the filter remains *.*, but xlsx is a second option. Well, that's ok.

But how to actually upload the file ?

I only know how in a regular html-Form the browser automatically uploads a file when selected via a file upload button ( <input type="file" name="file" > ) in conjunction to the form submit button, but in EWB I think I need a working example... Smile

Thanks in advance and please excuse that question.
Fri, Jun 14 2013 9:34 AMPermanent Link

Claudia Borsel

Tue, Aug 20 2013 5:56 PMPermanent Link

Ronald

Hi Claudia,

I do not understand how to implement file upload functionality in Delphi?
Can you help me?

Greetings,
Ronald

"Claudia Borsel" schreef in bericht
news:EBF29C0F-C11D-4979-B4C1-FC96F78984CF@news.elevatesoft.com...

Well, I found that and will try it:
http://www.elevatesoft.com/manual?action=viewtopic&id=ewb1&topic=HTML_Forms
Fri, Aug 23 2013 9:10 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< I do not understand how to implement file upload functionality in Delphi?
Can you help me? >>

What part do you not understand ?  The front-end (browser) or the back-end
(web server) ?

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Aug 23 2013 4:25 PMPermanent Link

Ronald

I do not understand the implementation on the back-end.

"Tim Young [Elevate Software]"  schreef in bericht
news:730D11CE-8BD0-4DC7-ADC5-039E94D7DF24@news.elevatesoft.com...

Ronald,

<< I do not understand how to implement file upload functionality in Delphi?
Can you help me? >>

What part do you not understand ?  The front-end (browser) or the back-end
(web server) ?

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Aug 26 2013 11:18 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< I do not understand the implementation on the back-end. >>

What are you using for the back-end, the EWB Web Server or something else
like Apache/IIS ?

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Aug 26 2013 1:57 PMPermanent Link

Ronald

I am using the WebBroker technology from Delphi on IIS.

"Tim Young [Elevate Software]"  schreef in bericht
news:C4111256-D236-4FDD-A39B-CDEF1B02C846@news.elevatesoft.com...

Ronald,

<< I do not understand the implementation on the back-end. >>

What are you using for the back-end, the EWB Web Server or something else
like Apache/IIS ?

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Aug 28 2013 4:15 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< I am using the WebBroker technology from Delphi on IIS. >>

You need to parse the incoming multi-part form data.  You can find out how
to do this here:

http://stackoverflow.com/questions/15385808/delphi-xe-isapi-webbroker-file-upload

Here's a link to some code:

http://www.mrsoft.org/Delphi/MultipartParser.pas

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Feb 15 2014 10:25 AMPermanent Link

Ronald

Hi,

I have tried the multipartparser.pas unit, but I can not get it to work.
Does anybody have a small example how to call this unit? My experiments have
all  failed so far.

Greetings,
Ronald

"Tim Young [Elevate Software]"  schreef in bericht
news:4DB91ECC-1E9A-4F34-A995-17139BAA17CF@news.elevatesoft.com...

Ronald,

<< I am using the WebBroker technology from Delphi on IIS. >>

You need to parse the incoming multi-part form data.  You can find out how
to do this here:

http://stackoverflow.com/questions/15385808/delphi-xe-isapi-webbroker-file-upload

Here's a link to some code:

http://www.mrsoft.org/Delphi/MultipartParser.pas

Tim Young
Elevate Software
www.elevatesoft.com
Image