Platforms to show: All Mac Windows Linux Cross-Platform
/CURL/CURLS upload to Web App/Web Upload Receiver
Required plugins for this example:
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /CURL/CURLS upload to Web App/Web Upload Receiver
This example is the version from Mon, 6th Nov 2022.
Project "Web Upload Receiver.xojo_binary_project"
Class App Inherits WebApplication
EventHandler Function HandleURL(Request As WebRequest, Response As WebResponse) As Boolean
Dim r As String = Request.Body
Dim msg As String = "Received request with "+Str(Len(r))+" bytes attached."
Dim c As Integer = SessionCount-1
For i As Integer = 0 To c
Dim s As session = session(app.SessionAt(i))
s.WebPage1.ListBox1.AddRow msg
Next
Response.Status = 200
Return True
End EventHandler
End Class
Class Session Inherits WebSession
Const ErrorDialogCancel = "Do Not Send"
Const ErrorDialogMessage = "This application has encountered an error and cannot continue."
Const ErrorDialogQuestion = "Please describe what you were doing right before the error occurred:"
Const ErrorDialogSubmit = "Send"
Const ErrorThankYou = "Thank You"
Const ErrorThankYouMessage = "Your feedback helps us make improvements."
Const NoJavascriptInstructions = "To turn Javascript on, please refer to your browser settings window."
Const NoJavascriptMessage = "Javascript must be enabled to access this page."
End Class
Class WebPage1 Inherits WebPage
Control ListBox1 Inherits WebListBox
ControlInstance ListBox1 Inherits WebListBox
End Control
End Class
Sign
End Sign
End Project
See also:
- /CURL/CURLS Amazon S3 pre-signed URL
- /CURL/CURLS Amazon S3 upload
- /CURL/CURLS connect try
- /CURL/CURLS picture download
- /CURL/CURLS pop3 email delete
- /CURL/CURLS post form values/CURLS post form values
- /CURL/CURLS post form/CURLS post form
- /CURL/CURLS SSL verification/CURLS SSL verification
- /CURL/CURLS threaded download
- /CURL/CURLS upload to Web App/CURLS upload to Web App
The items on this page are in the following plugins: MBS CURL Plugin.