ASPUpload Physical Path

What is the physical path to use ASPUplaod and drive settings for WIN10 and WIN11. We are having trouble getting it to work.

ANyone know this anwer so i can finish this project???

Shouldn’t it just be d:\hshome\username\domain.ext\directory ???

Don’t have any accounts on those servers so can’t verify.

As for getting ASPUpload to work on JodoHost servers - I have a script working without problems but don’t use the physical path but relative paths - the script takes the upload, renames, resizes and adds text if requested. (in this case the directory is one level above where the ASPUpload script resides)

eg

[COLOR=“Sienna”]<%
Set Upload = Server.CreateObject(“Persits.Upload”)

’ we use memory uploads, so we must limit file size
Upload.SetMaxSize 1000000, True
’ Save to memory. Path parameter is omitted
Upload.Save

’ Access subdirectory specified by user
Name = Upload.Form(“Name”)
AddText= upload.form(“addtext”)
Set File = Upload.Files(“FILE1”)
if name=“” then name=file.filename
’ Build path string
Path = “[B]DIRECTORY[/B]”

’ Save files to it. Our form has only one file item
’ but this code is generic.
For Each File in Upload.Files
File.Saveasvirtual Path & “" & Name
Set Jpeg = Server.CreateObject(“Persits.Jpeg”)
’ Open source image
TempFilePath=”../DIRECTORY/" & Name
NewImagePath=Server.MapPath(TempFilePath)
Jpeg.Open NewImagePath
’ New width
L = 400
’ Resize, preserve aspect ratio
Jpeg.Width = L
Jpeg.Height = Jpeg.OriginalHeight * L / Jpeg.OriginalWidth
if addtext<>“” then
Jpeg.Canvas.Font.Color = &HFFFF00 ’ Red
Jpeg.Canvas.Font.Family = “Arial”
Jpeg.Canvas.Font.Bold = true
Jpeg.Canvas.Font.Quality = 3 ’ Antialiased
Jpeg.Canvas.Font.size = 18
Jpeg.Canvas.Font.ShadowColor = &h000000
Jpeg.Canvas.Font.ShadowXoffset = 1
Jpeg.Canvas.Font.Shadowyoffset = 1
’ Jpeg.Canvas.Font.BkMode = “Opaque” ’ to make antialiasing work
Jpeg.Canvas.Print 10, Jpeg.Height-18, addtext
end if
Jpeg.Save NewImagePath

Response.Write “
Success!

File saved as " & name & “

<img border’0’ src='../DIRECTORY/”&Name&”'"
Next
%>

OK thanks, will try that.

You can use server.mappath(“/”) to determine the websites root directory but as Penhall says the website root is usuall d:\hshome\username\domain.ext\