ich habe ein formular mit datei uploads...
ich kreiere mir ein upl objekt, um auf die einzelnen felder und die datei
zuzugreifen.
sobald ich jedoch, bevor ich die zu uploadende datei speichere, auf ein feld
zugreife,
speichert er mir die datei nicht mehr ab.
will sagen:
das funzt (man beachte die auskommentierten killpic und id) :
uploadPfad = "e:\www\sitepoint\cgi-bin\preul\"
Set upl = Server.CreateObject("SoftArtisans.FileUp")
Set fso = CreateObject("Scripting.FileSystemObject")
'killpic = upl.Form("killpic")
'id = upl.Form("id")
existingPfad = uploadPfad & id
if(killpic=1)then
if fso.FolderExists(existingPfad) then
fso.DeleteFolder ( existingPfad )
end if
else
attachmentPfad = uploadPfad & "\"
if (NOT fso.FolderExists(existingPfad)) then
f = fso.CreateFolder(existingPfad)
end if
upl.Path = attachmentPfad
If Not upl.Form("file1").IsEmpty Then
upl.Form("file1").Save
fileSaved = 1
end if
end if
das nicht:
uploadPfad = "e:\www\sitepoint\cgi-bin\preul\"
Set upl = Server.CreateObject("SoftArtisans.FileUp")
Set fso = CreateObject("Scripting.FileSystemObject")
killpic = upl.Form("killpic")
id = upl.Form("id")
existingPfad = uploadPfad & id
if(killpic=1)then
if fso.FolderExists(existingPfad) then
fso.DeleteFolder ( existingPfad )
end if
else
attachmentPfad = uploadPfad & "\"
if (NOT fso.FolderExists(existingPfad)) then
f = fso.CreateFolder(existingPfad)
end if
upl.Path = attachmentPfad
If Not upl.Form("file1").IsEmpty Then
upl.Form("file1").Save
fileSaved = 1
end if
end if
was soll ich nun machen???? ich brauche id und killpic, bevor ich die datei
speichere ...
| [aspdecoffeehouse] als [email protected] subscribed
| http://www.aspgerman.com/archiv/aspdecoffeehouse/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.aspgerman.com/aspgerman/listen/anmelden/aspdecoffeehouse.asp