ihabsharaf Member Licensed User Longtime User Dec 22, 2017 #1 hi every one im use abmaterial Page_FileUploaded not fired when try to upload image any one know why ? or have the same bug
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 Dec 22, 2017 #2 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
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.
ihabsharaf Member Licensed User Longtime User Dec 22, 2017 #3 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: Dec 22, 2017 Upvote 0
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
alwaysbusy Expert Licensed User Longtime User Dec 22, 2017 #4 Does the folder uploads exist on your server and do you have writing rights to it? Upvote 0