Skip to content

Commit

Permalink
Updated README with new usage and known issues section
Browse files Browse the repository at this point in the history
  • Loading branch information
Blutsh committed May 13, 2024
1 parent 554f104 commit ea66cc0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Options:
-m, --message <Hello World> Define the message for the file(s) uploaded
-n, --number-download <250> Define the max number of downloads for the file(s) uploaded
-d, --duration <30> Define the number of days the file(s) will be available for download
-o, --output <output> Define an output directory for the downloaded files
-v, --verbose Enable verbose mode
-h, --help Print help
-V, --version Print version
```
Expand Down Expand Up @@ -51,6 +53,12 @@ This tool does not provide any encryption feature. :warning:

I strongly recommend you to encrypt your file before uploading it to any cloud service :lock:

## Known Issues

### File Upload Limit

When uploading many times the ***same*** file, it seems that infomaniaks servers flags you as suspicous traffic and you won't be able to upload for a while. It seems to be linked to your IP address, no extensive testing has been done. Use the debug mode to see the error message. :warning:

## Contributing

If a developer who truly has the skills and doesn't face the same skill issues as me wants to contribute to this project, feel free to do so. PRs and stuff. :handshake:
Expand Down
2 changes: 1 addition & 1 deletion src/swissfiles/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{
fmt,
path::{Path, PathBuf},
path::PathBuf,
};

mod swissfile;
Expand Down
2 changes: 1 addition & 1 deletion src/swissfiles/swissfile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use serde_json::json;
use std::fs::File;
use std::io::{Read, Seek, SeekFrom};
use std::path::PathBuf;
use std::{fmt, path::Path};
use std::fmt;

const SWISSTRANSFER_API: &str = "https://www.swisstransfer.com/api";
const CHUNK_SIZE: usize = 52428800;
Expand Down

0 comments on commit ea66cc0

Please sign in to comment.