You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use milton in my Android app via SimpletonServer. If I use Windows Explorer as client and copy large files to the server I see the progress bar progressing very fast to 99% and then waiting until the copy process is finished. It seems, that the server don't get the real file size (see screenshot).
Here is my code:
HttpManagerBuilder b = new HttpManagerBuilder();
b.setEnableFormAuth(false);
b.setEnableDigestAuth(false);
b.setEnableOptionsAuth(false);
FileSystemResourceFactory resourceFactory = new FileSystemResourceFactory(new File(preferences.getString(BASE_FOLDER)),
manager, getString(R.string.app_name));
resourceFactory.setAllowDirectoryBrowsing(true);
b.setResourceFactory(resourceFactory);
HttpManager httpManager = b.buildHttpManager();
if (server != null) {
server.stop();
}
server = new SimpletonServer(httpManager, b.getOuterWebdavResponseHandler(), 100, 10);
server.setHttpPort(Integer.parseInt(preferences.getString(PORT_WEBDAV)));
server.start();
Here are the logs:
W/System.err: 43868 [Stage-dispatchStage-2] INFO io.milton.http.HttpManager - HEAD :: 192.168.1.15:8080///Pocketshare/camtasia.dmg start
W/System.err: 43879 [Stage-dispatchStage-2] INFO io.milton.http.HttpManager - HEAD :: 192.168.1.15:8080///Pocketshare/camtasia.dmg finished 10ms, Status:HTTP/1.1 200 OK, Length:null
W/System.err: 65167 [Stage-dispatchStage-1] INFO io.milton.http.HttpManager - PUT :: 192.168.1.15:8080///Pocketshare/camtasia.dmg start
W/System.err: 65174 [Stage-dispatchStage-1] WARN io.milton.http.fs.FsResource - getCurrentLock called, but no lock manager: file: /storage/emulated/0/Download/camtasia.dmg
W/System.err: 107400 [Stage-dispatchStage-1] INFO io.milton.http.HttpManager - PUT :: 192.168.1.15:8080///Pocketshare/camtasia.dmg finished 42232ms, Status:HTTP/1.1 204, Length:null
W/System.err: 107485 [Stage-dispatchStage-3] INFO io.milton.http.HttpManager - PROPPATCH :: 192.168.1.15:8080///Pocketshare/camtasia.dmg start
W/System.err: 107506 [Stage-dispatchStage-3] WARN io.milton.http.fs.FsResource - getCurrentLock called, but no lock manager: file: /storage/emulated/0/Download/camtasia.dmg
W/System.err: 107520 [Stage-dispatchStage-3] WARN io.milton.http.webdav.PropertySourcePatchSetter - property not found: {urn:schemas-microsoft-com:}Win32CreationTime on resource: class io.milton.http.fs.FsFileResource
W/System.err: 107521 [Stage-dispatchStage-3] WARN io.milton.http.webdav.PropertySourcePatchSetter - property not found: {urn:schemas-microsoft-com:}Win32LastAccessTime on resource: class io.milton.http.fs.FsFileResource
W/System.err: 107521 [Stage-dispatchStage-3] WARN io.milton.http.webdav.PropertySourcePatchSetter - property not found: {urn:schemas-microsoft-com:}Win32LastModifiedTime on resource: class io.milton.http.fs.FsFileResource
W/System.err: 107521 [Stage-dispatchStage-3] WARN io.milton.http.webdav.PropertySourcePatchSetter - property not found: {urn:schemas-microsoft-com:}Win32FileAttributes on resource: class io.milton.http.fs.FsFileResource
W/System.err: 107532 [Stage-dispatchStage-3] INFO io.milton.http.HttpManager - PROPPATCH :: 192.168.1.15:8080///Pocketshare/camtasia.dmg finished 47ms, Status:HTTP/1.1 207 Multi-status, Length:null
The text was updated successfully, but these errors were encountered:
I use milton in my Android app via
SimpletonServer
. If I use Windows Explorer as client and copy large files to the server I see the progress bar progressing very fast to 99% and then waiting until the copy process is finished. It seems, that the server don't get the real file size (see screenshot).Here is my code:
Here are the logs:
The text was updated successfully, but these errors were encountered: