upload med AspSmartUpload
kan ikke få det til at virke!scripts er som følger...
form:
<form name="form1" enctype="multipart/form-data" action="upload_image_transfer.asp">
<input type="file" name="MYFILE" label="Vælg et billed" class="textbox">
<input type="submit" name="Submit" value="Upload billede" class="textbox">
</form>
uploadscript:
Dim mySmartUpload
Dim intCount
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.AllowedFilesList = "gif,jpg"
mySmartUpload.DenyPhysicalPath = True
mySmartUpload.MaxFileSize = 50000
mySmartUpload.Upload
intCount = mySmartUpload.files.Saveas("../billedesti/" & Replace(session("profilnavn"),"*"," ") & ".jpg")
