A
A
Alexander Pashchenko2012-11-20 15:01:42
IIS
Alexander Pashchenko, 2012-11-20 15:01:42

Help with aspSmartUpload

Good afternoon, %username%.

Given: Win2k8 Server, IIS 7 and aspSmartUpload library.
When trying to work with this library, we get an error. And earlier this lib worked exactly on the same server.

For example, we turn to site.com/1/sample1.htm.
We see the simplest form for uploading one file. We select a file. Click Submit and…

… see the error:

aspSmartUpload: Sample 1

aspSmartUpload error '800a0009'

Subscript out of range

/1/sample1.asp, line 19

sample1.asp
<HTML>
<BODY BGCOLOR="white">

<H1>aspSmartUpload : Sample 1</H1>
<HR>

<%
'  Variables
'  *********
   Dim mySmartUpload
   Dim intCount
        
'  Object creation
'  ***************
   Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")

'  Upload
'  ******
   mySmartUpload.Upload

'  Save the files with their original names in a virtual path of the web server
'  ****************************************************************************
   intCount = mySmartUpload.Save("/1/Upload")

'  Display the number of files uploaded
'  ************************************
   Response.Write(intCount & " file(s) uploaded.")
%>
</BODY>
</HTML>



sample1.htm
<HTML>
<BODY BGCOLOR="white">

<H1>aspSmartUpload : Sample 1</H1>
<HR>

<FORM METHOD="POST" ACTION="/1/Sample1.asp" ENCTYPE="multipart/form-data">
   <INPUT TYPE="FILE" NAME="FILE1" SIZE="50">
   <INPUT TYPE="SUBMIT" VALUE="Upload">
</FORM>

</BODY>
</HTML>




Who has experience with this library, tell me what could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pashchenko, 2012-12-06
@point212

I seem to have figured it out myself. After two reinstallations of Windows and the web server from scratch, after a month of digging in scripts, googling and dancing with a tambourine, it turned out ...
... here it is:
<rule name="Lower Case URLs" stopProcessing="true"> <match url="[A-Z]" ignoreCase="false" /> <action type="Redirect" url="{ToLower:{URL}}" /> </rule>
This is the Rewrite rule for IIS, which was in the web.config file in the folder with the site.
If you delete it, the aspsmartupload module starts working as it should.
Miracles and mysticism. Microsoft alone knows how the rewrite rule and a separate module are connected.
I hope someone finds it useful

A
Alexander Pashchenko, 2012-11-22
@point212

Any files. It does not depend on the size and type. I have already checked all these popular rakes. The problem here is in the system. And apparently it is buried deep.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question