Comments (4)
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 callsdo_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.
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.
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.
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)
- Error with owner_set_params HOT 1
- Is the set download limit invalid?
- 413 Client Error: Request Entity Too Large for url HOT 4
- Feature Request: Support new websocket interface for uploading
- Packing up and publishing on PYPI HOT 3
- Upload not working HOT 8
- Error downloading file HOT 4
- Library readiness HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffsend.