Jeg har brugt nedenstående script og har ikke haft problemer med ASP-upload
(Persits Software ) på scannet.dk servere
Dim strImageID, strNewsID, strImageName, strImageSize, strImageWidth,
strImageHeight
strImageID = Request.querystring("imageid")
strNewsID = Request.Querystring("newsid")
Set Upload = Server.CreateObject("Persits.Upload.1")
Upload.SaveVirtual("../../log/images/")
For Each File in Upload.Files
strImageName = File.ExtractFileName
strImageSize = File.OriginalSize
strImageWidth = File.ImageWidth
strImageHeight = File.ImageHeight
Next
Nu skal jeg bruge koden på digiweb.dk og de bruger SA-Fileupload i stedet.
(
http://www.digiweb.dk/support/asp-fileupload.php)
Når jeg forsøger at uploade en fil (billede) får jeg følgende fejl:
******
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Upload.File'
******
Med nedenstående kode!
Dim strImageID, strNewsID, strImageName, strImageSize, strImageWidth,
strImageHeight
strImageID = Request.querystring("imageid")
strNewsID = Request.Querystring("newsid")
Set Upload = Server.CreateObject("SoftArtisans.FileUp")
Upload.Path = "f:\home\dapodk\scripts\"
Upload.Save
For Each File in Upload.Files
strImageName = File.ExtractFileName
strImageSize = File.OriginalSize
strImageWidth = File.ImageWidth
strImageHeight = File.ImageHeight
Next
Filen bliver uploadet, men fejlen opstår i FOR - Next lykken.
Nogen der har en ide om hvad der skal stå i den
For Each File in Upload.Files
strImageName = ??????
strImageSize = ??????
strImageWidth = ??????
strImageHeight = ??????
Next
Fjerner jeg .Files i
for Each File in Upload.Files
kommer denne fejl i stedet, der meget ligner ovenstående
Object doesn't support this property or method
--
Mvh / Regards
-=< Christian >=-
ICQ: 25308942
http://www.cmnielsen.dk
Are you supposed to gain weight if you run backwards??