上传文件输入命令 [英] upload a file input command

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

问题描述

我遇到了一个问题: 当我想从服务器上传文件时,我可以上传该页面。但是,如果我尝试从远程计算机上传文件,我就无法做到。


给我我的代码


 


 


  strFileNamePath = myfile.PostedFile.FileName


        intFileNameLength = InStr(1,StrReverse(strFileNamePath)," \")


        strFileNameOnly = Mid(strFileNamePath,(Len(strFileNamePath) - intFileNameLength)+ 2)


       如果(不是strFileNameOnly是Nothing AndAlso strFileNameOnly.Trim.Length> 0)那么'如果是estando en cualquier maquina,那就不要进入este,pero si entra entrando a la pagina desde la computadora donde esta alojado el servidor


 


 


你能帮忙吗?


 


谢谢


 

解决方案

我会将您的问题发布到其中一个ASP.NET论坛:


http://forums.asp.net/


 


hi, , i got a problem:  When i want to upload a file from the server pc  where the page is hosted i can upload it. But if i try to upload a file from a remote computer i cant do that.

Give you my code

 

 

  strFileNamePath = myfile.PostedFile.FileName

        intFileNameLength = InStr(1, StrReverse(strFileNamePath), "\")

        strFileNameOnly = Mid(strFileNamePath, (Len(strFileNamePath) - intFileNameLength) + 2)

        If (Not strFileNameOnly Is Nothing AndAlso strFileNameOnly.Trim.Length > 0) Then' no entra a este if estando en cualquier maquina, pero si entra entrando a la pagina desde la computadora donde esta alojado el servidor

 

 

can you helpme?

 

thank you

 

解决方案

I would post your question to one of the ASP.NET forums:

http://forums.asp.net/

 


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

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