login about faq

Hi, I've just setup a new server with the latest chilkatupload.dll. For some reason the server isn't seeing the files or form values being posted. Everything looks fine from a code point of view... any ideas?

alt text

asked Oct 09 '13 at 22:23

bluesix's gravatar image


alt textFound the answer for this. In IIS7, you need to change the ASP / maxRequestEntityAllowed setting to > 200KB if you want to upload files larger than that. Otherwise the uploadrcv object returns a null POST.


answered Oct 09 '14 at 05:26

bluesix's gravatar image


edited Oct 09 '14 at 05:30

I tested with v9.4.1, and also with Chilkat's latest internal pre-release:

64-bit: http://www.chilkatsoft.com/preRelease/ChilkatUpload_x64-9.4.1-x64.zip
32-bit: http://www.chilkatsoft.com/preRelease/ChilkatUpload-9.4.1-win32.zip

and in both cases, everything worked fine.

To ensure the HTTP request (i.e. the multipart/form-data) is a correct and valid one, send it with a browser via a simple HTML form such as this:

<form method="POST" enctype="multipart/form-data" action = "http://www.yourdomain.com/yourScript.asp" >
<input name=hid1 type=hidden value="test123">
<input name=hid2 type=hidden value="abcdef">
<input name=attach1 type=file size=20>
<input type=submit value="Upload">

My receiving ASP script looks like this:

<% @CodePage = 65001 %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
'  The Chilkat ASP Upload component is freeware.
'  The UploadRcv object receives uploads in ASP.
'  It can be used to save uploaded files to the web server,
'  or to save directly to memory for immediate access.
set receiver = Server.CreateObject("Chilkat.UploadRcv")

'  Stream uploads to a directory:
'receiver.SaveToUploadDir = 1
receiver.UploadDir = Server.MapPath("receivedData")

'  Don't allow anything over 1MB
receiver.SizeLimitKB = 1000

'  Set a timeout just in case something hangs
'  This is a 20-second timeout:
receiver.IdleTimeoutMs = 20000

'  Consume the upload.  Files are streamed to the UploadDir
success = receiver.Consume()
    Response.Write receiver.LastErrorHtml

If (success = 0) Then
    Response.Write receiver.LastErrorHtml
    '  Display the files received:
    Response.Write "<p>Num file received: " & receiver.NumFilesReceived & "</p>"
    If (receiver.NumFilesReceived > 0) Then
        For i = 0 To receiver.NumFilesReceived - 1
            Response.Write "<p>Received " &  receiver.GetFilename(i) &  " (" & receiver.GetFileSize(i) & " bytes)</p>"
    End If

Response.Write "<p>Success.</p>"
End If



answered Oct 10 '13 at 09:18

chilkat's gravatar image

chilkat ♦♦

edited Oct 10 '13 at 09:18

Thanks for your response. Strange, I just ran your code and got the exact same problem - empty. Will re-setup my DLL and see if that fixes it.

(Oct 10 '13 at 19:04) bluesix

Nope - same problem (installed the latest version you linked to). I'm on Win7, 64-bit, SP1 (using the 32-bit DLL).

DllDate: Oct 10 2013 ChilkatVersion: UnlockPrefix: NONE Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 0 bAsp: 1 contentType: requestMethod: Assuming this is a POST... ContentLength: (NULL) doConsumeAspUpload: numParts: 0

Could there be a setting in IIS preventing the UploadRCV seeing the data?

(Oct 10 '13 at 19:14) bluesix
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 09 '13 at 22:23

Seen: 2,082 times

Last updated: Oct 09 '14 at 05:30

powered by OSQA