用VB.NET提交php文件 [英] Php file submit with VB.NET
本文介绍了用VB.NET提交php文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿朋友
我试图用PHP代码提交视频文件用vb.net如何提交文件而不用文件选择器vb.net会自动添加文件来自PC
就像我在C中有文件:\ xxxx.mp4会自动提交
Hey friends
I am trying to submit a video file in php code with vb.net how to submit file without file selector vb.net will auto add file from PC
Like i have file in C:\xxx.mp4 will auto submit there
<form method="post" enctype="multipart/form-data" action="upload.php">
<label for="title">Title:</label><input type="text" name="title" value="" />
<label for="description">Description:</label> <textarea name="description" cols="20" rows="2" ></textarea>
<label for="tags">Tags:</label> <input type="text" name="tags" value="" />
<label for="file">Choose Video File:</label> <input type="file" name="file" >
<input name="videoSubmit" type="submit" value="Upload">
</form>
我的尝试:
我尝试将type = file更改为type = text但unabel to upload
What I have tried:
I try to change type=file to type=text but unabel to upload
推荐答案
你不能。
VB.NET代码是一个ASP.NET项目。 IT在服务器上运行完全,而不是在浏览器中运行。
您无法在浏览器中获取代码,只需在客户端PC上随身携带文件即可。用户必须选择要上传的文件。做其他事情被认为是一个巨大的安全风险,是不允许的。
You can't.
The VB.NET code is an ASP.NET project. IT runs ENTIRELY on the server, never in the browser.
You cannot have code in the browser just pickup a file on the clients PC whenever it wants. The user MUST select file for it to be uploaded. Doing anything else is considered a HUGE security risk and is not allowed.
这篇关于用VB.NET提交php文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文