上传文件输入命令 [英] upload a file input command
问题描述
我遇到了一个问题: 当我想从服务器上传文件时,我可以上传该页面。但是,如果我尝试从远程计算机上传文件,我就无法做到。
给我我的代码
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论坛:
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:
这篇关于上传文件输入命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!