Avatar of wangzheng
wangzheng

asked on 

upload file to server in Delphi application

Hi,
Is there anyone know how to upload a binary file to a web server(php enabled).
We want to integrate the upload file function for one of our application.
Do we need to use some third party components?

Best Regards
Delphi

Avatar of undefined
Last Comment
Eddie Shipman
ASKER CERTIFIED SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of SaLz
SaLz

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of SaLz
SaLz

or you can use idftp1.Connect; on its own
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

By using the tutorial, you can write your PHP script to do it all and not use FTP.

Your PHP script could accept the file and place it in the secure directory, then
notify the user.

It could also be able to only accept based on security rights.
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

OP asked to post file to web server, not via FTP.
Avatar of aikimark
aikimark
Flag of United States of America image

EddieShipman,

<<OP asked to post file to web server, not via FTP.>>

I'm not sure I understand your comment.  Can you provide some context or further explanation?
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

What is there not to understand about "upload a binary file to a web server(php enabled)."?
This, in no way, says upload via FTP or use FTP in any way.

I was just saying that points shouldn't be split as my post shows how to do it via http and,
also, I see no mention of security in the OP's question.
Avatar of aikimark
aikimark
Flag of United States of America image

EddieShipman,

<<What is there not to understand ...>>
1. Why you posted your message.
2. The 'real' meaning of your message.
3. Some interpretation of your message that made sense in some context.

<<I was just saying that points shouldn't be split ...>>
THIS is the 'real' meaning of your message.  Your posted text did not mention points or splitting or objection.

Although the question did not mention 'FTP' or 'security', it did not seem out of line to mention these as possible solution components.  I don't object to stepping out of contention for the points for this question.  Let it be split two ways.

I wish the questioner had not abandoned this discussion thread.
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

Whatever....
Delphi
Delphi

Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.

60K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo