Android Question SMB and Upload handles

Luciano Boscolo

Member
Licensed User
Hello,
I use SMB to upload some files to a network shared folder in a pc. Everything works fine.
Now I'm just wondering if SMB handles _UploadCompleted and _UploadProgress, similar to FTP.
I'd like the user to be notified when the files have been fully transfered to the pc shared folder.

Thank you
 

DonManfred

Expert
Licensed User
The most uptodate version is this one.
B4X:
        <shortname>SMB</shortname>
        <comment>This library is based on &lt;link&gt;JCIFS|http://jcifs.samba.org/&lt;/link&gt; library.
It provides access to Microsoft Windows network file system.
See this &lt;link&gt;tutorial|http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/17179-android-smb-cifs-tutorial.html&lt;/link&gt;.</comment>
        <owner>process</owner>
        <event>DownloadCompleted (Url As String, RemoteFile As String, Success As Boolean)</event>
        <event>UploadCompleted (Url As String, RemoteFile As String, Success As Boolean)</event>
        <event>DeleteCompleted (Url As String, RemoteFile As String, Success As Boolean)</event>
        <event>ListCompleted (Url As String, Success As Boolean, Entries() As SMBFile)</event>
        <event>MakeDirCompleted (Url As String, RemoteFile As String, Success As Boolean)</event>
        <event>RenameCompleted (Url As String, DestRemoteFile As String, Success As Boolean)</event>
        <event>CopyCompleted (DestUrl As String, DestRemoteFile As String, Success As Boolean)</event>
        <event>FreeSpaceCompleted (Url As String, RemoteFile As String, Size As Long, Success As Boolean)</event>
        <permission>android.permission.INTERNET</permission>
So it will fire an upload completed but it will NOT fire events so see how many bytes you have transferred already...
 
Top