The story, in fact, begins not far away, but more recently.
My friends at work have closed access to everything they can, especially on half of the sites and FTP. This unflattering fact does not allow us to exchange files with us quickly, conveniently and efficiently, with the result that everything was sent by mail. And the task in this case is extremely simple - to "lay out" in the public access any program, documents or pictures.
At home there is a relatively old HP NX6125 laptop and a channel of 10 Mb / s, which, in principle, is fast enough to make a backup and file server out of it.
I will not describe the process of installing Debian and configuring everything, since many of them have written excellent articles on this subject. And I’ll tell you better about how I solved the problem of downloading files directly.
As I said above, the problem is that for 2/3 of our team, only the 80th port is available, i.e. HTTP Accordingly, the easiest and most Orthodox way of uploading via FTP is eliminated due to its incompatibility with life. It only remained to use the ready-made file manager, or write it yourself.
As a result of viewing a dozen or so projects, I decided to write something of my own, since it is much easier to deal with my code, and I almost did not find completely free projects.
Before writing, the following tasks were set:
- do everything smartly and technologically, with might and main use Ajax / XML / Javascript and other webdvanol;
- simplicity is not at the expense of functionality;
- crossbreeding and cross-platform (yes, so that it can be run on the vents, diesel fuel and in general).
')
The project decided to write on Perl, as it rules and is quite vigorously suitable for this task. And that's what happened in the end:
The beast was not quite originally called Home File Sharing and released under the GPL (source code can be found
here ).
What he can do:
- upload files, including in parallel (you can open several windows), progress bars are displayed;
- copy / delete / move / rename files and folders;
- create folders.
What he will be able to do when my hands reach me:
- Drag and Drop;
- archives (ZIP unpacking on the server, maybe packaging).
Tested on the Debian platform (where this miracle now lives) and Windows XP (where it was just tested); works great from Firefox, Opera, Safari, IE7 (not tested in the six). It requires only Perl and a web server, no databases are needed.
Yes, and of course, the demo can be seen
here , but nothing can be done with the files in the demo. So just to climb, see the interface, poke buttons.