Upload Log is a module which allows direct uploads from programs to a Drupal site (with authentication, through the HTTP Authentication Module). The sending of notification e-mails is possible, as is data validation.

A demonstration is available in the WaterSums software.

Any programming language that supports HTTP uploads with HTTP authentication can be used to send log files.

Here is an example of a Visual Basic.NET implementation:

Dim local_path As String  = "C:\path.to.log.file"
Dim upload_url As String  = "http://www.example.com/uploadlog/upload"
Dim username   As String  = "admin"
Dim password   As String  = "admin"
Dim showUI     As Boolean = TRUE
Dim timeout    As Integer = 1000

Try
    My.Computer.Network.UploadFile(local_path, upload_url, username, password, showUI, timeout)
    MessageBox.Show("You just uploaded the log file!  :-)")

Catch ex As System.OperationCanceledException
    MsgBox("File upload was cancelled")

Catch ex As Exception
    MessageBox.Show("You tried to upload the log file, but it didn't work..." & vbCrLf & ex.Message)

End Try

Downloads

Version Downloads Date Links
5.x-1.x-dev tar.gz (10.85 KB) | zip (12.34 KB) 2011-Feb-25 Notes

Project Information

  • Module categories: Third-party Integration, Utility
  • Maintenance status: Unknown
  • Development status: Unknown
  • Downloads: 283
  • Last modified: December 19, 2009

Maintainers for Upload Log

  • chris.morgan - 17 commits
    last: 4 years ago, first: 4 years ago

Issues for Upload Log

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here