将文件上载到服务器 [英] Uploading file to a server
本文介绍了将文件上载到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个C ++函数,它向服务器发送一个帖子请求以上传文件。
我还写了一个服务器端cgi来接收数据并在指定目录中创建文件。
服务器端cgi创建一个文件,但它是空白的,我没有在日志文件中看到任何错误(apache2 / error.log)
下面是我的服务器端脚本
展开 | 选择 | Wrap | 行号
解决方案
你有:
展开 | 选择 | Wrap | 行号
您有:
>展开 | 选择 | Wrap | 行号
< form>的enctype是什么标记
Hi,
I have a C++ function which sends a post request to a server for uploading a file.
I have also written a server side cgi to receive the data and create the file in a specified directory.
The server side cgi creates a file, however it is blank, I don''t see any errors in the log files (apache2/error.log)
Below is my server side script
Expand|Select|Wrap|Line Numbers解决方案You have:
Expand|Select|Wrap|Line Numbers
You have:
Expand|Select|Wrap|Line Numbers
what is the enctype of the <form> tag?
这篇关于将文件上载到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆