B4J Question Websocket with fileupload 100k limit

Nizze

Active Member
Licensed User
Longtime User
Hi

Where can i change Erels Serverexample to accept more then 100 k ?
In websocket with fileupload.

Br Nizze
 

Nizze

Active Member
Licensed User
Longtime User

Thanks !
It worked perfect

Is there anything more i have to change to use it from WAN ?
I have made a port redierect on port 51042 .

Br
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
Hi ..

I missed that i use R12 server with built in firewall ....
So after a small change there it worked

So now the webpage work with upload

Imtrying to upload a movie from android with this code that worked with PHP

But it do not work here , is there a workaround ?

B4X:
Sub Doning1(filname As String)
    PostPath = "http://www.XXXXX.com/websocket_with_fileupload/index.html"
    Dim j As HttpJob
    j.Initialize("", Me)
    Dim mp As MultipartFileData
    mp.Initialize
    mp.Dir = rp.GetSafeDirDefaultExternal("")
    mp.FileName = filname
    mp.KeyName = "file"
    mp.ContentType = "video/mp4"
    j.PostMultipart(PostPath, Null, Array(mp))
    Wait For (j) JobDone(j As HttpJob)
    If j.Success Then
        Log("- - - - - - - - - - - - - ")
        If filname = j.GetString Then
            ToastMessageShow("Film upladdad.", False)
        Else
            ToastMessageShow("Fel vid uppladdning", False)
        End If
    End If
    j.Release
    
End Sub
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
What happens when it doesn't work?

Server and client logs.

Mornings !
Can't see much in those logs . ...
From a pc and Chrome itworks to upload a file , with the same URL . ( http://www.XXXXX.com/websocket_with_fileupload/index.html )




Serverside shows nothing ( B4J ) .

And in client Side ( B4A )



This is the log ( From server ) when uploading from PC

 
Last edited:
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
Hi

If i take a photo i get this in Android log


But noting in server logs ..

Br
Nizze
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…