webForumDet fria alternativet

aspSmartUpload

7 svar · 508 visningar · startad av WebbisNet

WebbisNetMedlem sedan feb. 20032 027 inlägg
#1

Jag får detta fel med denna kod, kan se varför
Persits.Jpeg.1 error '800a0002'

The system cannot find the path specified.

/pictureupload/outputfile.asp, line 47

Rad 47 fetmarkerad

   Dim mySmartUpload
   Dim file

   Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
   mySmartUpload.AllowedFilesList = "jpg,gif,png"

   mySmartUpload.DenyPhysicalPath = True

   mySmartUpload.MaxFileSize = 100000
   mySmartUpload.Upload
   Set file = mySmartUpload.Files("blob") 
    If file.IsMissing Then
        Response.Write("Filen saknas!<BR>")        
    Else
        strFil = file.FileName
        file.SaveAs("/images/users/"&strFil)

        Response.Write("Name = " & file.Name & "<BR>")
        Response.Write("Size = " & file.Size & "<BR>")
        Response.Write("FileName = " & file.FileName & "<BR>")
        Response.Write("FileExt = " & file.FileExt & "<BR>")
        Response.Write("FilePathName = " & file.FilePathName & "<BR>")
        Response.Write("ContentType = " & file.ContentType & "<BR>")
        Response.Write("ContentDisp = " & file.ContentDisp & "<BR>")
        Response.Write("TypeMIME = " & file.TypeMIME & "<BR>")
        Response.Write("SubTypeMIME = " & file.SubTypeMIME & "<BR>")
        
Set Jpeg = Server.CreateObject("Persits.Jpeg")
[b]Jpeg.Open "/images/users/"&file.FileName[/b]
L = 100
Jpeg.Width = L
Jpeg.Height = Jpeg.OriginalHeight * L / Jpeg.OriginalWidth
Jpeg.Save "/images/users/thumb"

    End If
WebbisNetMedlem sedan feb. 20032 027 inlägg
#2

Nån som vet?

emissionMedlem sedan dec. 19996 721 inlägg
#3

Jpeg.Open-metoden ska ha en fysisk sökväg, så använd Server.MapPath

WebbisNetMedlem sedan feb. 20032 027 inlägg
#4

skriver Jpeg.Open Server.MapPath("/images/users/"&strFil) men får bara
Persits.Jpeg.1 error '800a0001'

The system cannot find the path specified.

/pictureupload/outputfile.asp, line 39

tillbaka som svar

emissionMedlem sedan dec. 19996 721 inlägg
#5

Samma rad?

WebbisNetMedlem sedan feb. 20032 027 inlägg
#6

ja

WebbisNetMedlem sedan feb. 20032 027 inlägg
#7

ingen som har kommit på nån lösning?

J.N.Medlem sedan apr. 20031 660 inlägg
#8

HEJ!

Utskrift av Server.MapPath("/images/users/"&strFil) ger precis det du vill ha?

129 ms totalt · 3 externa anrop · v20260731065814-full.beb2e261
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
126 ms — hämta tråd, inlägg och bilagor (db)