Knowledgebase: Shared Hosting
aspSmartUpload - Upload Components for ASP
Posted by on 24 November 2011 08:56 AM

aspSmartUpload - Upload Component for ASP

aspSmartUpload is a server-side component that can be used to upload files from a client's machine to the server, under your domain.

How do you use aspSmartUpload?
The following is an example of using the SmartUpload component to upload a file:

        'Create an instance of our SmartUpload object.
        Set uploadObj = Server.CreateObject("aspSmartUpload.SmartUpload")

        'Process the upload

        'Save the file
        uploadObj.Save Server.MapPath(".")      

The standard Request.Form collection becomes unusable when the aspSmartUpload.SmartUpload object is instantiated, to access the values of the Form collection, use something similar to this:

        formValue = uploadObj.Form("formField")
        'Where formField is a field input that was posted.

The permissions on your hosting account are setup to allow scripts operate in a secure manner.  Uploading files will work when the Save path is the one that is under your domain.  Trying to save to files outside of your domain will result in an access violation and your script will finish in error.

You also can refer to ASPSmartUpload documentation at for more details.

(2 vote(s))
Not helpful

Copyright © 1998 - 2021 Shinjiru International Inc. All Rights Reserved.