上传文件 [英] FileUpload
问题描述
或
我可以从客户端磁盘获取图像并将其上传到服务器.
谢谢
我假设您正在使用ASP.NET,即使您没有这样说,也可以在提供的文本或标记系统中使用.人们怎能不足够聪明地向问题添加基本标签?
写道:如何在pageload事件或javascript中设置fileupload控件的值.
你不能如果您对Web开发有所了解,那么您就会明白为什么不能这样做.想象一下,如果我可以写一个页面,并拥有隐藏的文件上传控件,那么当您提交该页面时,我能够从您的计算机上窃取文件吗?
写道:我可以从客户端磁盘获取图像并将其上传到服务器.
给他们一个文件上传控件,让他们选择图像文件.那是您唯一的ASP.NET选项.或者,更确切地说,这是您使用HTML的唯一选择.
hi
how can i set the fileupload control a value in pageload event or in javascript.
or
can i get the image from client disk and upload it to server.
Thanks
I assume you''re using ASP.NET, even though you don''t say so, in the text OR in the tag system provided. How can people not be smart enough to add basic tags to a question ?
wrote:how can i set the fileupload control a value in pageload event or in javascript.
You can''t. If you knew anything about web development, you''d understand why it is that you can''t do that. Imagine if I could write a page, and have a hidden file upload control, so when you submitted that page, I was able to steal files from your computer ?
wrote:can i get the image from client disk and upload it to server.
Give them a file upload control and get them to choose the image file. That is your only ASP.NET option. Or, to be more precise, it''s the only option you have using HTML.
这篇关于上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!