---
title: "aspSmartUpload"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/141654-aspsmartupload"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "WebbisNet"
published: "2006-01-28T21:37:22.000Z"
updated: "2006-02-03T13:04:45.000Z"
replies: 7
views: 512
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/141654-aspsmartupload"
---

# aspSmartUpload

## #1 — WebbisNet, 2006-01-28T21:37Z

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
```

Permalänk: https://www.webforum.nu/p/141654

## #2 — WebbisNet, 2006-01-28T23:15Z

Nån som vet?

Permalänk: https://www.webforum.nu/p/1755393

## #3 — emission, 2006-01-29T00:59Z

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

Permalänk: https://www.webforum.nu/p/1755434

## #4 — WebbisNet, 2006-01-29T01:03Z

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

Permalänk: https://www.webforum.nu/p/1755437

## #5 — emission, 2006-01-29T01:09Z

Samma rad?

Permalänk: https://www.webforum.nu/p/1755440

## #6 — WebbisNet, 2006-01-29T01:11Z

ja

Permalänk: https://www.webforum.nu/p/1755441

## #7 — WebbisNet, 2006-02-02T22:31Z

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

Permalänk: https://www.webforum.nu/p/1760245

## #8 — J.N., 2006-02-03T13:04Z

HEJ!

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

Permalänk: https://www.webforum.nu/p/1760487

---

Tråden på webben: https://www.webforum.nu/amne/asp/141654-aspsmartupload
