Coder Social home page Coder Social logo

ffsend apt package about ffsend HOT 4 OPEN

nneonneo avatar nneonneo commented on September 28, 2024
ffsend apt package

from ffsend.

Comments (4)

nneonneo avatar nneonneo commented on September 28, 2024

Cool, thanks for doing that.

  • For the password, AFAIK a password environment variable is used to authenticate (here, for download). I am a little hesitant to use a password environment variable for setting a password because there's a real risk of someone uploading a file and password-protecting it by accident, and if we don't use the environment variable for setting a password then it will feel a little inconsistent. Thoughts?
  • I'd love to. If there's a reasonably standard way to handle this, that'd be best. Happy to take a PR. Info already shows the TTL using h/m/s so we can probably just use that syntax (i.e., [Xd][Xh][Xm][Xs], interpreting as seconds if no units are present).
  • You can specify --set-ttl with an upload, so no separate call is required. (The script calls do_set_params after a successful upload)
  • You can't at the moment. PyFxA exists so I might play with that, but I'm not sure how robust the support is yet. I definitely don't want to roll my own client. Might be worth a try to integrate it?

from ffsend.

nneonneo avatar nneonneo commented on September 28, 2024

Amusingly, my ffsend client apparently bypasses the 1GiB limit and allows you to upload up to 2.5GiB as an anonymous user. It might be considered a bug in the Firefox Send implementation (the websocket version that most people use limits to 1GiB, but the /upload endpoint I use uses the full 2.5GiB limit). I've just tested this with a random 1.7GiB file and found that ffsend.py was able to upload it successfully.

However, it is not possible to change the download limit as an anonymous user. I will poke at PyFxA and see if I can integrate that.

from ffsend.

nneonneo avatar nneonneo commented on September 28, 2024

Ok, I got FxA support but the new issue is that you can't set a TTL anymore via params - so you can only set a TTL through the initial upload if you use websockets. Blech.

I wonder if maybe I can just get that fixed by filing an issue over at mozilla/send...

from ffsend.

sbrl avatar sbrl commented on September 28, 2024

Hey, no problem!

For the password, AFAIK a password environment variable is used to authenticate....

Hrm, that is an issue. Perhaps using an environment variable name that is unlikely to be used, like FFSEND_UPLOAD_PW?

I'd love to. If there's a reasonably standard way to handle this, that'd be best

I'm not sure of any standard documents, but I have seen a number of tools use the letters w, d, h, m, and s to specify longer lengths of time more easily.

Info already shows the TTL using h/m/s

Not sure what you mean by this. When do ffsend --help, I see this:

--set-ttl SET_TTL     Set the time to live (in seconds). Must specify
                        -t/--token

Amusingly, my ffsend client apparently bypasses the 1GiB limit and allows you to upload up to 2.5GiB as an anonymous user

Haha, nice! Nothing to worry about then - I wasn't aware of the internal implementation there. Yeah, it might be worth filing a bug over there to ask what's going on with that. It does sound like there are a number of inconsistencies in the protocol they've implemented.

from ffsend.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.