Recommendations for a file upload page?
Mauro Souza
thoriumbr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Jun 28 12:06:28 UTC 2013
Most of the time I use it to receive files from co-workers, and I *always*
forget to run a ifconfig before to get my IP address.
To solve that, I slightly changed droopy, so it says all my IP addresses
right away:
<snip>
...
import socket
import locale
# change to show my IP addresses
# package python-netifaces needed
from netifaces import interfaces, ifaddresses, AF_INET
for ifaceName in interfaces():
addresses = [i['addr'] for i in
ifaddresses(ifaceName).setdefault(AF_INET, [{'addr':'No IP addr'}] )]
print '%s: %s' % (ifaceName, ', '.join(addresses))
# end change
USAGE='''\
Usage: droopy [options] [PORT]
...
<snip>
Mauro
http://mauro.limeiratem.com - registered Linux User: 294521
Scripture is both history, and a love letter from God.
2013/6/27 Scott Sullivan <scott-lxSQFCZeNF4 at public.gmane.org>
> On 06/27/2013 03:56 PM, Mauro Souza wrote:
>
>> I use a nice script called Droopy (http://stackp.online.fr/?p=28**). You
>> ran it anywhere from bash, and it creates a simple web server allowing
>> the user to upload anything for you, and the file is dropped on that
>> directory. No configuration needed, no Apache needed, runs out of the
>> box. You only need python installed. And it only allows uploads, no
>> download allowed, so you don't have to think about security, multiple
>> users uploading files, and so...
>> Is not a fancy-looking-multi-upload-**with-progress-meter solution, but
>> is
>> a drop and run, instant no-hassle solution.
>>
>>
> Mauro,
>
> Thanks!
>
> Someone in another list had point at Woof[1] that does the same thing, but
> Droopy is far more attractive and a fair bit more feature rich.
>
> [1]: http://www.home.unix-ag.org/**simon/woof.html<http://www.home.unix-ag.org/simon/woof.html>
>
> Both of these more or less fit my needs and the temporary nature addresses
> my security concerns.
>
> --
> Scott Sullivan
>
> --
> The Toronto Linux Users Group. Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/**Mailing_lists<http://gtalug.org/wiki/Mailing_lists>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20130628/fd638932/attachment.html>
More information about the Legacy
mailing list