ASP - SmartUpload
Jeg sidder og har lavet noget upload til en kunde, men kundens webhotel understøtter noget skod der hedder Asp\"Smart\"Upload og det sucks.Min kode vil gerne eksekveres, men der bliver ikke uploadet en skid. Er der ikke nogen der vil være så venlige at hjælpe mig
Her er min kode:------------------------
<!-- Submit Form ----------------------->
<FORM METHOD=\"POST\" ACTION=\"uploadfile.asp\" ENCTYPE=\"multipart/form-data\">
<TABLE ID=ColorTable BORDER=0 CELLSPACING=3 CELLPADDING=2>
<tr>
<td></td>
</tr>
<tr>
<td><INPUT TYPE=\"FILE\" NAME=\"FILE1\" SIZE=\"36\" style=\'font-family: verdana; font-size: 8pt;\'></td>
</tr>
<tr>
<td><INPUT TYPE=\"FILE\" NAME=\"FILE2\" SIZE=\"36\" style=\'font-family: verdana; font-size: 8pt;\'></td>
</tr>
<tr>
<td><INPUT TYPE=\"FILE\" NAME=\"FILE3\" SIZE=\"36\" style=\'font-family: verdana; font-size: 8pt;\'></td>
</tr>
<tr>
<td><INPUT TYPE=\"FILE\" NAME=\"FILE4\" SIZE=\"36\" style=\'font-family: verdana; font-size: 8pt;\'></td>
</tr>
</table>
<table height=\'57%\' width=\'95%\'>
<tr>
<td valign=\'bottom\' width=\'90%\' align=\'right\'><input TYPE=\"SUBMIT\" value=\' Ok \' style=\'font-family: verdana; font-size: 8pt;\'></td>
<td valign=\'bottom\' align=\'right\'><input type=\'reset\' value=\'Annullere\' ONCLICK=\"window.close();\" style=\'font-family: verdana; font-size: 8pt;\'></td>
</tr>
</table>
</form>
<-- Upload scriptet -------------------->
<%
\' Variables
\' *********
Dim mySmartUpload
Dim file
Dim intCount
intCount=0
\' Object creation
\' ***************
Set mySmartUpload = Server.CreateObject(\"aspSmartUpload.SmartUpload\")
\' Upload
\' ******
mySmartUpload.Upload
\' Select each file
\' ****************
For each file In mySmartUpload.Files
\' Only if the file exist
\' **********************
If not file.IsMissing Then
\' Save the files with his original names in a virtual path of the web server
\' **************************************************************************
file.SaveAs(\"/inc/\" & file.FileName)
\' sample with a physical path
\' file.SaveAs(\"c:\\temp\\\" & file.FileName)
\' Display the properties of the current file
\' ******************************************
Response.Write \"<font face=\'verdana\' style=\'font-size: 8pt;\'>\"
Response.Write \"Størrelse = \" & file.Size & \"<BR>\"
Response.Write \"Filnavn = \" & file.FileName & \"<BR>\"
Response.Write \"Filetype = \" & file.FileExt & \"<BR><BR>\"
intCount = intCount + 1
End If
Next
\' Display the number of files uploaded
\' ************************************
Response.Write intCount & \" file(r) er uploadet.\"
%>
På forhånd tak
