B4J Question Page_FileUploaded not fired

ihabsharaf

Member
Licensed User
Longtime User
hi every one

im use abmaterial

Page_FileUploaded not fired

when try to upload image

any one know why ?
or have the same bug

:)
 

alwaysbusy

Expert
Licensed User
Longtime User
How big is the image? Have you set the variables:

B4X:
Public DownloadFolder As String = "/www/" & ABMShared.AppName & "/uploads/"
Public DownloadMaxSize As String = 100*1024  ' <---- this sets the allowed size, in this case 100kb

In websocket_connected:
B4X:
ws.Session.SetAttribute("abmcallback", Me)   
ws.Session.SetAttribute("abmdownloadfolder", DownloadFolder)
ws.Session.SetAttribute("abmmaxsize", DownloadMaxSize)

Set a log in ABMUploadHandler in the Handle method and see it anything arrives there.
 
Upvote 0

ihabsharaf

Member
Licensed User
Longtime User
thank you
its working

but i have question

this path

B4X:
Public DownloadFolder As String = "/www/" & ABMShared.AppName & "/uploads/"
work perfect on local but not work on the server


i need to specify other folder for uploads
 
Last edited:
Upvote 0
Top