Write Error copying any file to OneDrive with the TC OneDrive plugin

Support for Android version of Total Commander

Moderators: sheep, Hacker, Stefan2, white

Post Reply
DAC324
Junior Member
Junior Member
Posts: 12
Joined: 2012-11-21, 14:14 UTC

Write Error copying any file to OneDrive with the TC OneDrive plugin

Post by *DAC324 » 2019-05-05, 17:02 UTC

Hello all,

for quite some time (must be around one or two months) I always get a write error when trying to copy ANY file from an Android phone (Samsung Galaxy S7 Edge) or an Android Tablet (Medion LifeTab S10366) to my OneDrive.

Steps to reproduce:
1. Log in to One Drive on one side of TC (works without problems)
2. Change directory to the Downloads folder on the Android device on the other side of TC
3. Select any of the downloaded files and choose "copy" or "move" to OneDrive

The copy or move process starts, the progress bar goes up to around 80%, then an error message saying "Error writing target file" occurs, with options "OK" and "Cancel". If "OK" is chosen, a zero-byte file with the name of the file to be copied is created on OneDrive. If "Cancel" is chosen, no file is created on OneDrive.
As the very same file(s) can be uploaded flawlessly using the OneDrive Android app or a browser, the error clearly lies within TC and/or the OneDrive plugin.

I also tried uninstalling/reinstalling TC and the OneDrive plugin, and also tried TC 3.0 beta, all with no luck.

Is there something I am missing or some setting I will have to correct?

Thank you very much for your help in advance and kind regards,

DAC324

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3409
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Write Error copying any file to OneDrive with the TC OneDrive plugin

Post by *Horst.Epp » 2019-05-05, 17:12 UTC

I don't what is wrong in your setting but there is no generell problem with this.
I can copy or move files without problems from my Samsung S8 Android into my One Drive folders
using TC 3.0b3 and its Windows Live OneDrive plugin.
Windows 10 Home x64 May 2019 Update, Version 1903 (OS Build 18362.418)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.50ß1 x64 / x86, Everything 1.4.1.954 (x64)

DAC324
Junior Member
Junior Member
Posts: 12
Joined: 2012-11-21, 14:14 UTC

Re: Write Error copying any file to OneDrive with the TC OneDrive plugin

Post by *DAC324 » 2019-05-05, 19:06 UTC

Horst.Epp wrote:
2019-05-05, 17:12 UTC
I don't what is wrong in your setting but there is no generell problem with this.
I can copy or move files without problems from my Samsung S8 Android into my One Drive folders
using TC 3.0b3 and its Windows Live OneDrive plugin.
Thank you very much for this information. I re-checked and found that the error does not seem to affect all files but mainly *.apk files. I could copy *.PDF or *.DOCX without error but at least no *.APK files.
That's even more strange to me. Is there something in the TC OneDrive plugin blocking certain extensions?
As already said, there are no problems copying *.APK files using the OneDrive app or a browser. Hence, there must be some limitation within the TC OneDrive plugin.

Kind regards,
DAC324

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3409
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Write Error copying any file to OneDrive with the TC OneDrive plugin

Post by *Horst.Epp » 2019-05-06, 06:51 UTC

DAC324 wrote:
2019-05-05, 19:06 UTC
Horst.Epp wrote:
2019-05-05, 17:12 UTC
I don't what is wrong in your setting but there is no generell problem with this.
I can copy or move files without problems from my Samsung S8 Android into my One Drive folders
using TC 3.0b3 and its Windows Live OneDrive plugin.
Thank you very much for this information. I re-checked and found that the error does not seem to affect all files but mainly *.apk files. I could copy *.PDF or *.DOCX without error but at least no *.APK files.
That's even more strange to me. Is there something in the TC OneDrive plugin blocking certain extensions?
As already said, there are no problems copying *.APK files using the OneDrive app or a browser. Hence, there must be some limitation within the TC OneDrive plugin.

Kind regards,
DAC324
I can confirm it now.
Copying an apk file reaches 100% but then terminates with an error message.
Other files have no such problem.
Windows 10 Home x64 May 2019 Update, Version 1903 (OS Build 18362.418)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.50ß1 x64 / x86, Everything 1.4.1.954 (x64)

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37695
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Write Error copying any file to OneDrive with the TC OneDrive plugin

Post by *ghisler(Author) » 2019-05-06, 07:46 UTC

I can confirm the problem too, but it also happens with other big files like pdf. Microsoft must have changed something in the upload function. I will investigate.
Author of Total Commander
http://www.ghisler.com

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3409
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Write Error copying any file to OneDrive with the TC OneDrive plugin

Post by *Horst.Epp » 2019-05-06, 17:45 UTC

ghisler(Author) wrote:
2019-05-06, 07:46 UTC
I can confirm the problem too, but it also happens with other big files like pdf. Microsoft must have changed something in the upload function. I will investigate.
After the actual update of the plugin copying apk files are working again. :D
Windows 10 Home x64 May 2019 Update, Version 1903 (OS Build 18362.418)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.50ß1 x64 / x86, Everything 1.4.1.954 (x64)

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37695
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Write Error copying any file to OneDrive with the TC OneDrive plugin

Post by *ghisler(Author) » 2019-05-06, 19:18 UTC

Thanks for confirming the fix! The plugin uses a different upload method for files >1MB which allows to resume uploads, and was suddenly getting error 400 and 401 errors from the servers.
Author of Total Commander
http://www.ghisler.com

DAC324
Junior Member
Junior Member
Posts: 12
Joined: 2012-11-21, 14:14 UTC

Re: Write Error copying any file to OneDrive with the TC OneDrive plugin

Post by *DAC324 » 2019-05-11, 21:13 UTC

Hello,

thank you very much for the quick fix also from me. I can confirm that there is no error anymore while copying APK files to OneDrive.

Kind regards,
DAC324

Post Reply