TIdHTTPServer文件上传 [英] TIdHTTPServer file upload

查看:507
本文介绍了TIdHTTPServer文件上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将文件上传到Indy(版本10.5.5)TIdHTTPServer。

我一直在寻找解决方案,但没有运气到目前为止,我发现是旧的Indy的版本与Delphi 2010附带的版本不兼容。

I'm trying to upload files to a Indy(ver. 10.5.5) TIdHTTPServer.
I've been searching for solutions but no luck thus far, what I've found was for older versions of Indy which were not compatible with the version shipped with Delphi 2010.

我希望通过上传一个文件,使用multipart / form-data到服务器,解码它,简单的,任何帮助是赞赏。

What I'm hoping is to achieve simply upload a file using "multipart/form-data" to the server and decode it, simple as that, any help is appreciated.

推荐答案

我开始 xxm 作为使用Delphi构建网站的方式,并且具有HTML和Pascal代码重新编译,在更改后按浏览器的刷新按钮。

I started xxm as a way to build websites with Delp and have scripts with both HTML and Pascal code re-compile with a press of the browser's refresh button after changes made.

它使用通用接口插入IIS,Apache,Internet Explorer,FireFox ,还有一个独立的HTTP exe。当文件上传时,界面会显示参数上的IxxmParameterPostFile。

It uses a generic interface that 'plugs into' IIS, Apache, Internet Explorer, FireFox, and there's a stand-alone HTTP exe also. The interface exposes IxxmParameterPostFile on a parameter when a file is uploaded.

请参阅 demo 4 Upload 为例。

这篇关于TIdHTTPServer文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆