Dropbox Filemanager

Browsers, email, chat, etc.
Message
Author
User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#31 Post by mikeb »

Thanks for the info Scooby.

I will check it out soon life permitting :)

mike

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#32 Post by mikeb »

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

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#33 Post by Scooby »

Does 'Get link' also work as is?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#34 Post by mikeb »

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

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#35 Post by Scooby »

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?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#36 Post by mikeb »

Ok heres a sample link...http..

http://dl.dropbox.com/u/110545536/Misc/ ... _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

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#37 Post by Scooby »

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
Image

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
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

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#38 Post by mikeb »

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. :D

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 :).

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

mike

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#39 Post by Scooby »

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 :).
...
I never really looked at the new type of link before but today I saw there was at the end

Code: Select all

?dl=0
if you change that to

Code: Select all

?dl=1
You don't have to go to a webpage first but get download directly :D

An easy sed when hiding from winter huh?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#40 Post by mikeb »

excellent.... there's always a sneaky way. :)

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

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#41 Post by mikeb »

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 :D )

I slipped in a delete confirmation box as I felt I should :)

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
Attachments
Url_link_test.tar.gz
test version for evaluating link generation plus delete confirmation box.
(40 KiB) Downloaded 369 times

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#42 Post by Scooby »

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 :cry:
mikeb wrote:I slipped in a delete confirmation box as I felt I should :)
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, 16:16, edited 1 time in total.

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#43 Post by Scooby »

double post

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#44 Post by mikeb »

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

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#45 Post by Scooby »

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: Select all

[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 "/" ?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#46 Post by mikeb »

Yep your right ... '/' is rejected...I assume the dropbox api sees this as a perverse request :D

I was in a bit a rush last time as was preparing for a trip out.

Apart from that are you getting happy download links and think that a note about dl=1 is sufficient?

mike

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#47 Post by Scooby »

mikeb wrote: Apart from that are you getting happy download links and think that a note about dl=1 is sufficient?
Yep getting happy download links

about dl=1:

If I would get free hands I would probably introduce an option to control
behaviour for folder as an example I use a a variable called FOLDER_BEHAVIOUR
if it contains "zip" change last char to 1 also for folders

for files always change to 1

Code: Select all

	URL=`dropbox_uploader.sh "$PROFILE" url "$REMOTE_DIR$REMOTE" | grep Url | cut -f 2`

	[[ $REMOTE != */  || $FOLDER_BEHAVIOUR == zip ]] && URL="${URL/%0/1}"
	
	gxmessage "$URL"
But maybe that sorts under your "cos I am lazy" clause? :D


After thinking about it I would put up both links in gxmessage with description for folder
but always dl=1 for files

If lazyness was not a factor how would you do it?

I did a test but I'm using yad instead of gxmessage

Image


BTW

If I have a empty folder on dropbox I get a folder in it called "/" in dropbox_gui
Is this something that I have accidently hacked in or do you get the same?

I think maybe this is due to me using the newest version of dropbox_uploader.sh
If I reqeust an empty dir then the result would be only "[D]" so to fix I added
a check for length in build_remote_list

[ "${#I}" -le 3 ] && continue

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#48 Post by mikeb »

If I have a empty folder on dropbox I get a folder in it called "/" in dropbox_gui
Is this something that I have accidently hacked in or do you get the same?
hmm ..i create an empty folder and it drops into it and shows...nothing
If I go up and back into it still nothing.
If I add a file...delete it ...go up and back into the empty folder...still nothing....
I think that's what you mean and no there is no '/' folder and the expected path in the address bar.

Ok for the download link its really just a case of what is most clear and simple for a user.
I considered giving both links but is that messy...either in code terms or user information ? Since the change is one digit it seemed borderline as to automate the whole thing or not.
Another thought is is this option an officially 'approved' one or something that might disappear some day?

My jury is out on this one.....

mike

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#49 Post by mikeb »

Ok something is better than nothing.... update in the first post to 0.2 ..the improved link grabber, confirmation for delete and an info box to check quota...

test and enjoy.

mike

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#50 Post by trapster »

Could this be made into a simple gui for uploads/downloads to local servers?

ip - 192.168.1.xxx
user - xxxx
password - xxxx


I've been playing with html and php for something to move multiple files but not much luck (yet).
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

Post Reply