These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

other plugins?

I was just wondering if anyone has successfully made a plugin that uses an upload component.  I am interested in doing so, but don't really know where to start
Chip Rogers 1/12/2003 11:08 AM
Hi Chip,
Here is the class structure and explanations for a WebExplorer Free file transfer plugin:

    ' File Transfer Plugin Name
    ' Required component
    ' URL to the component

    ' Standard Class for File Transfer Plugin
    Class pluginFileTransfer
        Public path
        Public uploadedFileName, uploadedFileSize
        Public contentType
        
        ' Create objects required by the plugin
        ' The 3rd party component etc.
        Private Sub Class_Initialize()

        End Sub
        
        ' Destroy objects
        Private Sub Class_Terminate()

        End Sub
    
        ' Upload the posted file
        ' Return values: 0 - success, 1 - no file sent, 2 - path not found, 3 - write error
        ' The public variable path (save location) should be set prior to calling this function.
        ' The public variables uploadedFileName, uploadedFileSize and contentType should be set before existing this function.
        Public Function Upload()

        End Function
        
        ' Download the file with the given name at current path
        ' Return values: 0 - success, 1 - file not found, 2 - read error
        Public Function Download(fileName)

        End Function

' --- Internal variables and functions specific to this plugin only (non standard) ---
        ' Here, the private variables, functions  specific to this plugin can be defined.

    End Class
Cem Alacayir 1/12/2003 12:16 PM