WebFileUploader should be part of the web page and you need to process/copy the files in the event UploadFinished. after UploadFinished the files are gone.
and you need min. Xojo 2021r1.1
simplified
save as file (with a prepared path property) and also save into postgreSQL
Sub UploadFinished(Files() As WebUploadedFile) Handles UploadFinished
System.DebugLog CurrentMethodName
'For Each f As WebUploadedFile In Files
'System.DebugLog f.Name + " Size " + f.Size.ToString
'f.Save(Session.Data.Path.Child(f.Name))
'Next
'---------------------------------------- Connect
Var db As New MyDatabase
'---------------------------------------- Large Objects
db.BeginTransaction
For Each f As WebUploadedFile In Files
System.DebugLog f.Name + " Size " + f.Size.ToString
Var obj_id As Integer = db.CreateLargeObject
Var largeObject As PostgreSQLLargeObject = db.OpenLargeObject(obj_id)
largeObject.Write f.Data
Var row As RowSet = db.SelectSQL("insert into files (obj_id,mime_type,name,datetime) values($1,$2,$3,$4) returning files_id",obj_id,f.MIMEType,f.Name,DateTime.Now)
Next
Try
db.CommitTransaction
Catch e As RuntimeException
db.RollbackTransaction
MessageBox e.Message
End Try
'----------------------------------------
End Sub
PDF tutorial “Introduction to Xojo Programming” is good only for desktop app development, and it is very hard to learn web development in Xojo by this tutorial. Besides that, there are some videos but are advanced and assuming that this PDF tutorial helped me to understand basics of web development in Xojo.
I want to build product ordering web app for my company, and at the moment my key issues are Working folders with web app, Putting a picture into a file of a product.
Any suggestions on how to approach in learning web development with Xojo?
I think that for now I should stick to Bubble.io platform to develop web app that I need for my company.
But I will keep on learning Xojo for developing desktop apps for other ideas that I have.