Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

2
Become a Fan
5.0

Description:
This is a KDE 4 plasma applet which can copy or move files over every
protocol which is supported by KIO. So you can use it to copy or move files
to a FTP server or an folder on your PC for example. After you have had
specified the destination in the settings, you can click on the icon
to open the open-file-dialog or you can just drag and drop your files
on it.
It is also possible to open the destination with konqueror or to generate
http or ftp links to your files.

This is my first KDE and C++ programm, so don't expect to
much. I just made this to learn a bit. So if you like it, want to
critisize it or want to teach me something, just let me know. This also
includes my english ;-)

I registered that there are some problems on machines with KDE 4.1.
You need KDE 4.2 or newer for this app!

Short installation instruction:
# tar -xvzf drop2ftp-0.6.tar.gz
# cd drop2ftp-0.6/
# cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
# make
# sudo make install


Thanks to tigger-gg for the Mandriva packages.

Please note: There may be bugs with the bookmarks. So if you have bookmarks on your system Plasma could crash in newer versions of KDE. At the moment I don't have the time to fix this issue. Sorry for that folks.
Last changelog:

0.6:
new feature: generate html or ftp links
now the crash in the config-menu is definitely fixed

0.5.1:
fixed a crash if the config-menu is closed

0.5:
added ability to open the destination-path in konqueror. At the moment it is not possible
to open the default browser because of a bug in dolphin (https://bugs.kde.org/show_bug.cgi?id=185866) (thanks to horchi again)
user can now choose, if Drop2FTP should copy or move files
label will now be shown, if Drop2FTP is 50pix or bigger (before it was 75pix)
removed option "hide progress info"
some little changes

0.4:
Now you can access your personal bookmarks to use the saved addresses
Added the ability to change the Icon
Added option "Hide progress info"
If Drop2FTP is copying anything it will show it, even if there are more than one job

0.3.2:
Drop2FTP is now licensed under GPL 3.

0.3.1:
Fixed some issues with the label
some code has been rewritten

0.3:
Added support for KDE 4.2 RC1 and newer (older versions are not supported)
Added support for Labels, so you can give every Drop2FTP Icon another name (thanks to horchi)
If no address is specified the settingsdialoge will open if you want to use Drop2FTP
some minor fixes

0.2.1:
Now it should also work with the new KDE 4.1.4

0.2:
Added support for KDE 4.1 and older

0.1:
Initial release


Ratings & Comments

53 Comments

quaqo

I made a small patch to make this compile on Qt 4.7 (which solves QString ambigous errors). drop2ftp-qt47.patch http://aur.pastebin.com/mSLdhegy Arch Linux PKGBUILD http://aur.pastebin.com/A30xG2Dp

utdmr

First, sorry for my English. I would like to set chmod settings in the plasmoid's settings. My files needs to be chmod 744'ed for web-server. But in my filesystem, the permissions are different. It will be good if i have an option to change permissions.

wander

Can I use your widget to Ubuntu One and how to do?

MatzeR

I didn't test it, because I have no ubuntu. But if there is a kio-slave for this it should work.

dovidhalevi

If I give the applet a bare URL to FTP site, I get "cannot rename partial file, check permissions". If I try to include login info in the URL, i.e. ftp://user:password@ftp.site.com I get malformed URL. The problem may be that the user name also contains '@' and '.'--may need to replace %## notation. So tried %40 for the @. Now I get the "cannot rename partial file, check permissions" error so it will accept the URL. How do I get it to work?

MatzeR

You should use kwallet for your username and password. Does your url work in konqueror?

dovidhalevi

It once did work in konqueror. Now get unsupported protocol. Konqueror is becoming more and more a dog. The URL does work in Opera though opera's ftp functionality is quite limited. If the URL is (possibly) OK, I get that permissions error. If it is not, then the program correctly complains.

MatzeR

If your URL doesn't work in konqueror this might be a problem of kio. Maybe you should open a bug-report on bugs.kde.org.

panzi

When I open the bookmark editor through your plasmoid I can't click the K menu icon any more. The menu just doesn't show. What should I report this bug?

panzi

Of course I meant: Where should I report this bug?

MatzeR

You mean, if you click on "Edit Bookmarks" in the settings you can't click on the K-Menu anymore? Does this also happen, if you open the bookmarkmanager through Konqueror? Do you use the latest version of KDE? Here you can write bugreports: https://bugs.kde.org/

panzi

It only happens when I open the bookmark editor from your plasmoid. After I close the bookmark editor the K Menu pops up as if I'd clicked it just then. It doesn't happen when I open the bookmark editor using konqueror. I know the KDE bugtracker, but where should I report the bug? Is it a bug of plasma, the K menu, the bookmark editor or your plasmoid? I think all plasmoids are run in a single process (one event loop), so if one blocks, all are blocked. Is this correct? If yes, maybe you open the bookmark editor with a blocking call, waiting for it to exit? Just open it in a non blocking manner (what do you need to wait for it anyway?), maybe then the bug is gone? I'd be worth a try. That the K menu pops up after the bookmark editor is closed supports this theory.

MatzeR

Drop2FTP opens the Bookmarkmanager through a slot provided by kbookmarkmanager. (slot is called slotEditBookmarks() see http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/classKBookmarkManager.html for further informations) So I don't know why this happen. I think this is a bug of KDE or Qt. Maybe an update could help, because I can't reproduce this behavior. Every plasmoid works like a charme on my computer. I don't know to which address this error goes but I would ask my distributor first.

panzi

Ic. Strange, because this function is calling the bookmark manager detached: http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/kbookmarkmanager_8cc-source.html#l00577 However, this is the KDE 4.3 API reference and I use 4.2.2 (on Fedora 10 with Qt 4.5.0).

panzi

Could you add an option for running a command when one clicks the icon? Then one could specify the command: dolphin %u as a workaround for the dolphin bug. However, great app!

dovidhalevi

Minimum GUI for an FTP interface would include server, username, password. I have not gotten to the point where KIO will ask. Instead I get malformed URL messages. Setting the complete URL here would be best. If password be omited, KIO should ask but ...

MatzeR

First of all Drop2FTP is not only an ftp-interface although it is called so. And I don't know why I should implement something like username or password. KIO is asking the user for these informations. Drop2FTP works like Konqueror in this case. You also can save your username and password for every server by KIO. So you wont get asked for this.

dovidhalevi

Fine. If KIO asks me for it and a get a configuration dialog for saving this info. It didn't (sometimes dialogs get "hidden" behind plasma, however). Also, I would not want to be asked each time on a multiple-file transfer from the "open" dialog. BTW, konqueror will not, it seems, open ftp.

MatzeR

"Also, I would not want to be asked each time on a multiple-file transfer from the "open" dialog" You can select more than one file in the "open" dialog. "BTW, konqueror will not, it seems, open ftp" Konqueror does support ftp. It uses KIO for this protocol and others like Drop2FTP does. You can see which protocols are supported if you start kinfocenter and click on IO-Ports

dovidhalevi

Konqueror, trying to open the ftp site, says it cannot access. I am not asked for name and password. Applet slowly seems to copy the dropped or chosen file "somewhere," then complains it has not permission to save the intermediary file. Never get to actual ftp attempt. I am trying to set up with ftp://ftp.livedrive.com/my%20files or such.

MatzeR

Are you shure that you have permission to the folder hou have specified in the settings? And are shure this folder does exist? Maybe there are some problems with the space in the name? Does the folder exist where you want to write? Test your destination in a console with ls -la

dovidhalevi

I am trying to ftp to a remote site. Why the applet is "transferring" the file to some intermediate, I do not know. KIO is not asking me for authentification in konqueror and I do not get that far in the applet.

MatzeR

Sorry for my late answer. Maybe you should contact the KIO development team, because this seams not to be a problem of Drop2FTP but of KIO.

AiFiLTr0

Thanks a lot for the plasmoid! Here are a couple of ideas to improve. I have a 24\7 pc that runs as a home server. Since it has a direct ip address I use it instead of rapidshare and stuff. I drop files to a folder mounted via sshfs, and others download them via http. So here goes the feature request: Add an option to create a http/ftp link of the file. Something like http://myhost.org/%s formatting would be enough with %s as the filename.

MatzeR

At the moment I don't have so much time. I will see what I can do, if I have more time.

Pling
0 Affiliates
Details
license
version 0.6
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0