This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New plugin available: Cloud (access to Box, Dropbox, etc).
Goto page 1, 2, 3 ... 17, 18, 19  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 33185
Location: Switzerland

PostPosted: Thu Dec 11, 2014 5:06 am    Post subject: New plugin available: Cloud (access to Box, Dropbox, etc). Reply with quote

I have created a new plugin (based partially on the webDAV plugin) for Total Commander.

It allows to access the following clouds:
- Box
- Dropbox
- Google Drive
- Windows Live SkyDrive
- Yandex Drive

It is possible to create multiple accounts on all the services (by saving the login token with a master password) except for Yandex Drive. I couldn't find a logout link for Yandex drive. Maybe a Russian user knowing this service can help.

Currently supported functions:
- Upload
- Download
- Rename
- Delete
- New folder
- Detailed properties

The login is done in a separate program oauthbrowser.exe, which simply calls the Internet Explorer control. I had to do this because the control has a massive memory leak after each login, so TC would have to be restarted after 5-10 logins. This way I can just terminate the login program.

WARNING:
========
This plugin uses the Internet Explorer control to log into the cloud services. Unfortunately the services use cookies to save the login. Therefore it is NOT recommended to use this plugin on other people's computers, e.g. when running TC from USB stick.

New functions:
===========
1.08: OneDrive: Suppress script errors, use client_updated_time field
1.07: Google Drive: Access files shared by other users
1.07: Google Drive: Download documents from Google Docs, converter to docx, pdf etc.
1.06: Google Drive: Timestamp lost when renaming/remote copying files
1.05: Yandex: Support accents or cyrillic
1.05: OneDrive: Rename file when name contained spaces or accented characters
1.04: Copy/Move files between folders within an account
1.01: Copy properties of a file to clipboard, e.g. URL

Download here (v 1.0Cool:
http://ghisler.fileburst.com/fsplugins/cloudplugin1.08.zip
_________________
Author of Total Commander
http://www.ghisler.com


Last edited by ghisler(Author) on Thu May 26, 2016 4:42 am; edited 11 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EricB
Senior Member
Senior Member


Joined: 25 Mar 2008
Posts: 323
Location: The Netherlands

PostPosted: Thu Dec 11, 2014 8:24 am    Post subject: Reply with quote

Christian, very nice indeed.

I did a short test on 4 of the 5 cloud providers (I'm not using Yandex) and everything seems to work out of the box. I'll check in more detail later on.

Would it be feasible somewhere in time to add support for providers copy.com and tresorit?

One design concern:
Normally one would use the cloud plugin on a computer where the normal cloud client software is NOT installed, so typically someone else's PC. Due to the storage of cookies this is deemed unsafe. Seems like a catch-22 situation.

Regards, EricB
Back to top
View user's profile Send private message
Jon Canale
Member
Member


Joined: 07 Feb 2003
Posts: 115

PostPosted: Thu Dec 11, 2014 12:27 pm    Post subject: Reply with quote

Tried with DropBox. Logged in, told TC not to remember pwd, but clicking Allow, got error message "invalid_grant".

I'm on WinXPProSP3 with IE8.

Error log looks like this (I deleted info on cookie?):

POST /1/oauth2/token HTTP/1.1
Error: 400 Bad Request
POST /1/oauth2/token HTTP/1.1
Error: 400 Bad Request
POST /1/oauth2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: cloudplugin/1.0 TotalCommander/8.5 (Windows/XP; en_EN)
Host: api.dropbox.com
Content-Length: 199
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ________________________
******Received headers
HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 11 Dec 2014 18:22:10 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Error: 400 Bad Request
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 33185
Location: Switzerland

PostPosted: Fri Dec 12, 2014 2:08 pm    Post subject: Reply with quote

2EricB
Thanks for trying my plugin!

Quote:
Would it be feasible somewhere in time to add support for providers copy.com and tresorit?

I can add providers under the following conditions:
1. They support a public REST API (which is just special HTTPS calls)
2. They do not forbid the usage by third parties
3. They do not forbig the usage on Windows.

For example, the "Orange" cloud someone suggested allows 1+3, but not 2: There is a rule that it's not allowed to implement a different programming interface for their service. But a Total Commander plugin is essentially a programming interface...

2Jon Canale
Sorry, no idea what could be wrong - I just retried without saving the password, no problem at all. The plugin is authorized for production by Dropbox. I can't find any error reports in the Dropbox developer account either.

Could you try again? Maybe Dropbox was just down when you tried?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
iana
Senior Member
Senior Member


Joined: 27 Jul 2010
Posts: 298

PostPosted: Fri Dec 12, 2014 3:04 pm    Post subject: Reply with quote

@ghisler wow this is a nice plugin tried it with dropbox and onedrive, dropbox works great (upload/download/rename/delete), onedrive is a bit buggy it doesn't remember the password between tc restarts, I'm having problems with renaming/deleting files on onedrive, if I copy a file to onedrive I need to relogon to rename twice or delete it.
I upload a file 1.txt, I can rename it to 2.txt but then I can't rename it back to 1.txt it states it's write protected

ps could you add mega support
https://mega.co.nz/sdk.zip
Back to top
View user's profile Send private message
Jon Canale
Member
Member


Joined: 07 Feb 2003
Posts: 115

PostPosted: Fri Dec 12, 2014 4:20 pm    Post subject: Reply with quote

Just tried it again. I get same error message, "invalid_grant". Logged in using Chrome, and had no problem, using same login and same id. Can do the same thing in IE8.

I don't have the Dropbox software installed on my machine - I'm just logging into a browser window - https://www.dropbox.com/login.

Again, WinXPPro, sp3. TC 8.51a
Back to top
View user's profile Send private message
iana
Senior Member
Senior Member


Joined: 27 Jul 2010
Posts: 298

PostPosted: Fri Dec 12, 2014 4:38 pm    Post subject: Reply with quote

@Jon Canale I noticed the default plugin setting was to use ie's proxy, do you use a proxy, try a direct connection I re-tested dropbox and it works good.

ps. I also don't have dropbox's app I connect with a browser.

ps.ps tested with google drive too, no problems so far.


Last edited by iana on Fri Dec 12, 2014 5:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
mrle
Junior Member
Junior Member


Joined: 25 Apr 2005
Posts: 27

PostPosted: Fri Dec 12, 2014 4:40 pm    Post subject: Reply with quote

iana wrote:
onedrive is a bit buggy it doesn't remember the password between tc restarts

iana wrote:
I'm having problems with renaming/deleting files on onedrive, if I copy a file to onedrive I need to relogon to rename twice or delete it.


The same is happening here
Back to top
View user's profile Send private message
Jon Canale
Member
Member


Joined: 07 Feb 2003
Posts: 115

PostPosted: Fri Dec 12, 2014 8:29 pm    Post subject: Reply with quote

Changed to direct connection instead of proxy, still got invalid_grant error. Clicked button to delete last proxy, restarted TC, tried again, still got invalid_grant error.

Here's the short error log:

POST /1/oauth2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: cloudplugin/1.0 TotalCommander/8.5 (Windows/XP; en_EN)
Host: api.dropbox.com
Content-Length: 199
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: xxxx(deleted)
******Received headers
HTTP/1.1 400 Bad Request
Server: nginx
Date: Sat, 13 Dec 2014 02:27:52 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Error: 400 Bad Request
Back to top
View user's profile Send private message
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 6893
Location: Valsted, Denmark

PostPosted: Sat Dec 13, 2014 3:10 pm    Post subject: Reply with quote

2ghisler(Author)

The information about manual installation in the ReadMe.txt file seems to be incorrect.
_________________
#524
Danish Total Commander Translator
TC 9.0a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.80b5 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 33185
Location: Switzerland

PostPosted: Mon Dec 15, 2014 5:10 am    Post subject: Reply with quote

2iana
Thanks for reporting the OneDrive plugin problem, I will try to reproduce it.

2Jon Canale
TC uses the Internet Explorer control. Please try logging in with IE to your Dropbox account - does it work? Btw, the Windows Dropbox client is NOT needed.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jon Canale
Member
Member


Joined: 07 Feb 2003
Posts: 115

PostPosted: Mon Dec 15, 2014 8:07 am    Post subject: Reply with quote

I have no problem logging into Dropbox with IE8 or Chrome on my computer.
Back to top
View user's profile Send private message
Hurdet
Senior Member
Senior Member


Joined: 10 May 2003
Posts: 364

PostPosted: Mon Dec 15, 2014 10:00 am    Post subject: Reply with quote

Do you can add copy.com?
If I understand well, their support restfull api.


Last edited by Hurdet on Mon Dec 15, 2014 12:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 6893
Location: Valsted, Denmark

PostPosted: Mon Dec 15, 2014 11:50 am    Post subject: Reply with quote

Quote:
Btw, the Windows Dropbox client is NOT needed.


Funny, it wasn't until I upgraded my DropBox client that it worked for me - but maybe upgrading the client touched the box online in a way that made it accessible. Before that I got the "invalid_grant" several times.

I have now tried both the 32bit and the 64bit version, and Box, Dropbox, Onedrive and Google Drive all works fine here under Windows XP, Windows 7 and Wndows 8.1.
_________________
#524
Danish Total Commander Translator
TC 9.0a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.80b5 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jon Canale
Member
Member


Joined: 07 Feb 2003
Posts: 115

PostPosted: Mon Dec 15, 2014 7:24 pm    Post subject: Reply with quote

Just tried the plugin on my home machine with WinXP Home, sp3 and TC 8.51a. Got same Invalid_grant error. Logged in with IE8 with no problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page 1, 2, 3 ... 17, 18, 19  Next
Page 1 of 19

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group