<% Set oFileUp = Server.CreateObject("SoftArtisans.FileUp") oFileUp.Path = "server path..." oFileUp.CreateNewFile = True oFileUp.OverWriteFiles = True 'oFileUp.Maxbytes = 300 If Not oFileUp.Form("file1").IsEmpty Then oFileUp.Form("file1").Save If Err.Number <> 0 Then Response.Write "<B>Error description:</B> " & Err.Description Else Response.Write "" End If Else Response.Write "Error! There is no file chosen for upload!" End If strServerName = oFileUp.Form("file1").ServerName dim fs,p set fs=Server.CreateObject("Scripting.FileSystemObject") e=(fs.GetExtensionName("" & strServerName & "")) p=fs.getfilename("" & strServerName & "") response.write(p) response.write(e) set fs=nothing Set oFileUp = Nothing %>
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
An Experts Exchange subscription includes unlimited access to online courses.Get Started
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE