Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 22 May 2018, 21:44
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Dropbox Filemanager
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 7 [95 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
mikeb


Joined: 23 Nov 2006
Posts: 11124

PostPosted: Fri 29 Aug 2014, 15:53    Post subject:  

Thanks for the info Scooby.

I will check it out soon life permitting Smile

mike
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11124

PostPosted: Fri 29 Aug 2014, 17:16    Post subject:  

Hmm working ok here 'as is'...I wonder if this is the ssl change mentioned earlier...I have disabled it but not for the pet as I was unsure who is affected.

mike
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Sat 30 Aug 2014, 07:43    Post subject:  

Does 'Get link' also work as is?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11124

PostPosted: Sun 31 Aug 2014, 15:48    Post subject:  

Yes 'get link' is still working.

Note from their website you get a https link but I generate a http one...either seems valid.

Also note this is only valid for the 'Public' folder which is still available for new accounts if enabled...this gives a direct link which is great for say a flash movie player.

The 'official' api gives the item/folder link which takes you to a webpage first....something perhaps I could add but might make life confusing have 2 different download link options.

If 'get link' is not working for you my guess would be its not a file in the 'Public' folder.....hope that all makes sense.

mike
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Mon 01 Sep 2014, 09:13    Post subject:  

how do you enable public folder?

it works without it using dropbox-loader 0.14


I like to get the direct download.

when you use http there is no problems
with ca certs?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11124

PostPosted: Mon 01 Sep 2014, 11:57    Post subject:  

Ok heres a sample link...http..

http://dl.dropbox.com/u/110545536/Misc/Cap_sasl_Xchat.zip

I generate the link using the item id rather than using dropbox's api since they don't actually have one for this.

https://www.dropbox.com/help/4224
see the button half way down for enabling the Public folder...you need to login to complete it.

Since my link generation is independent of their api's and the uploader script I am curious as to why it would stop working.

mike
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Mon 01 Sep 2014, 13:08    Post subject:  

mikeb wrote:

Since my link generation is independent of their api's and the uploader script I am curious as to why it would stop working.

yeah, as I stated here I use a modyfied version
of your filemanager so I changed to the new way of getting link (through api)
but I am coming around to see the benefits of your way.

This is how my modified version looks like


If you ever upgrade dropbox_uploader.sh script maybe it could be an
config option which link to get?

I will try the links you provided and follow your explanation.
btw thanks for that

-------- EDIT ----------------------------------------------------------

from here

Quote:
Creating a Public folder

Dropbox links give you everything you need to share and preview files and folders.
However, if you’re just a diehard fan of Public folders, click here to enable one on your
account. Currently only Pro and Dropbox for Business users can enable Public folders,
so you may have to upgrade first.


Okay as far as I can tell if you have home( free ) dropbox account you cannot activate
public folder any longer

The feel of it is that dropbox want to steer you away from this option
Maybe it is easier to track you the other way?

Ohhh I wanted the direct download link, better than intermediary page.

if you can confirm, it would be useful if that info was shared in your first post
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11124

PostPosted: Mon 01 Sep 2014, 13:49    Post subject:  

Ah yes the small print further down. Well thats an annoying change of policy...far too useful an option ...thing is they get free promotion by sending to a webpage first basically... something most file hosts do and I suppose their primary business is backups and group sharing rather than running our home movies or feeding the puppy forum with useful files. Very Happy

Ok so only an option for older clients basically....'nowt as sure as change'

Yes indeed I should add the option and phase out the Public one or give a warning/info box. Been having a busy Summer this year so something to do when hiding from the Winter perhaps Smile.

Thanks for memory jogging me... and feel free to post anything here that you feel is useful

mike
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Tue 07 Oct 2014, 12:40    Post subject:  

mikeb wrote:

...this gives a direct link which is great for say a flash movie player.

The 'official' api gives the item/folder link which takes you to a webpage first....


mikeb wrote:
...Been having a busy Summer this year so something to do when hiding from the Winter perhaps Smile.
...


I never really looked at the new type of link before but today I saw there was at the end
Code:

?dl=0


if you change that to

Code:

?dl=1


You don't have to go to a webpage first but get download directly Very Happy

An easy sed when hiding from winter huh?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11124

PostPosted: Tue 07 Oct 2014, 12:57    Post subject:  

excellent.... there's always a sneaky way. Smile

If this is the bunny then could simply use the same api regardless rather than being public folder dependent.....

I will check it out ...

cheers

mike
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11124

PostPosted: Tue 07 Oct 2014, 14:57    Post subject:  

Ok inspired by your post here is a test version....
it uses the official api for obtaining the url and I simply added a note about the dl=1 since the behaviour for a file and folder link are quite different...for the latter it zips the folder contents...so left it for a user to change as desired.

I also tested a direct file link in a flash video player and it works perfectly in which case the pupblic folder becomes obsolete (unless they change this behaviour Very Happy )

I slipped in a delete confirmation box as I felt I should Smile

If it tests out ok i will update the pet. I also wonder about the value of the ssl check since I now have it permanently disabled.

mike
Url_link_test.tar.gz
Description  test version for evaluating link generation plus delete confirmation box.
gz

 Download 
Filename  Url_link_test.tar.gz 
Filesize  40 KB 
Downloaded  171 Time(s) 
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Wed 08 Oct 2014, 11:46    Post subject:  

mikeb wrote:
...for the latter it zips the folder contents...

Maybe I could use this somehow to zip all of my dropbox account and download
for backup

Any idea how the link is built i.e. how to simulate a link to /

I could create a top dir and put evrything in it but then I would have to edit
a hundred links in different posts on forums Crying or Very sad

mikeb wrote:
I slipped in a delete confirmation box as I felt I should Smile

I agree it should be there allthough I may confess to probably comment it out meself


mikeb wrote:

I also wonder about the value of the ssl check since I now have it permanently disabled.

Is that the ca-certificates? I use arch version of it and probably would leave it in


You still use old version of dropbox_uploader.sh
0.11.3 why not upgrade to latest 0.14?

Last edited by Scooby on Wed 08 Oct 2014, 12:16; edited 1 time in total
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Wed 08 Oct 2014, 12:15    Post subject:  

double post
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11124

PostPosted: Wed 08 Oct 2014, 13:46    Post subject:  

Quote:
0.11.3 why not upgrade to latest 0.14?

cos I am lazy and would have to modify it to match the gui and I have not come across any functionaily gain apart from this link one I just did. Plus sometimes he takes out functions that then have to be re-added...like the url encode stuff which by the way I do using sed so its not dependant on the curl version...another difference. I suppose its become a fork now.

zipping '/'..... well my test script is
dropbox_uploader.sh {profile name} url /
to grab the link...only tested quickly so not sure if it includes subfolders or not when zipping. As you can see the gui does not have the '/' selection option as life gets fiddly that way and up to now was not relevant.

mike
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Thu 09 Oct 2014, 15:40    Post subject:  

mikeb wrote:

zipping '/'..... well my test script is
dropbox_uploader.sh {profile name} url /
to grab the link...only tested quickly so not sure if it includes subfolders or not when zipping. As you can see the gui does not have the '/' selection option as life gets fiddly that way and up to now was not relevant.


I tried it using your versions and get

Code:
[21:35 root@alphaos]> dropbox_uploader.sh scooby url /
 > Obtaining URL "/"...
FAILED

[21:35 root@alphaos] > dropbox_uploader.sh scooby url /public
 > Obtaining URL "/public"...

Url:   https://www.dropbox.com/sh/zjilzj7n3ecf5nn/AADYblZkR-575khx-bNs25mKa?dl=0


Did you get a link from "/" ?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 7 [95 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1101s ][ Queries: 14 (0.0191s) ][ GZIP on ]