Skip to content

Commit

Permalink
Update to version 1.4
Browse files Browse the repository at this point in the history
## Additions:

+ Added ability to resize window.
+ Added a website to document the project in detail and clarify certain parts of the code: https://spel987.github.io/Automatic-File-Uploader/.
+ Added version indication to window title.
+ Added 7 new hosts:
    - UsersDrive (https://usersdrive.com)
    - Download.gg (https://download.gg)
    - MegaUp (https://megaup.net)
    - KrakenFiles (https://krakenfiles.com)
    - Clicknupload (https://clicknupload.click)
    - Daily Uploads (https://dailyuploads.net)
    - Upload.ee (https://upload.ee)
+ Added manual removal support to 16 hosts:
    - Uplooad (https://uplooad.net)
    - tempfiles.ninja (https://tempfiles.ninja)
    - 1cloudfile (https://1cloudfile.com)
    - Bowfile (https://bowfile.com)
    - AnonSharing (https://anonsharing.com)
    - file-upload.org (https://file-upload.org)
    - HexUpload (https://hexload.com)
    - Mexa.sh (https://mexa.sh)
    - RapidFileShare (http://rapidfileshare.net)
    - up-load.io (https://up-load.io)
    - Usercloud (https://usercloud.com)
    - UsersDrive (https://usersdrive.com)
    - Download.gg (https://download.gg)
    - MegaUp (https://megaup.net)
    - Clicknupload (https://clicknupload.click)
    - Daily Uploads (https://dailyuploads.net)
    - Upload.ee (https://upload.ee)

## Changes:

* Fixed bug that made window not draggable when uploading file.
* Simplified profile editing window.
* Improved management and retrieval of items required for file deletion.
* Improved interface for manual deletion.
* Disabled upload button if the file is identical to the one just uploaded.
* Specified retention times ("hours" instead of "h" and "days" instead of "d").
* Improved colorization of every other line.
* Many miscellaneous improvements made to the code, the user experience, and the interface layout.

## Removals:

- Removed no longer supported hosts:
    - AnonymFile (https://anonymfile.com): Added a cookies/token system to prevent remote uploads.
    - Anyfile (https://anyfile.co): The site is no longer online.
    - Gofile.cc (https://gofile.cc): The site is no longer online.
    - AnonFiles.me (https://anonfiles.me): The site is no longer online.
    - Bayfiles.io (https://bayfiles.io): The site is no longer online.
  • Loading branch information
spel committed Jan 31, 2024
1 parent 915662d commit 4e1392b
Show file tree
Hide file tree
Showing 16 changed files with 530 additions and 330 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

src-tauri/Resources/history.json
src-tauri/Resources/history.json
164 changes: 71 additions & 93 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
This project lets you upload your files remotely to different hosting sites.

<h1 align="center">
<a href="#"><img src="https://i.imgur.com/8oTYP4D.png"></a>
<a href="#"><img src="https://i.imgur.com/KHRMPL8.png"></a>
</h1>

### [The official website with documentation and code details](https://spel987.github.io/Automatic-File-Uploader/)
# Installation

### - Use the application by compiling it by hand :
### - Use the application by compiling it by hand:

- Install the latest version of Rust : https://www.rust-lang.org/tools/install
- Install the latest version of Rust: https://www.rust-lang.org/tools/install

- Install Tauri-CLI with this command:

Expand All @@ -23,25 +23,25 @@ cargo install tauri-cli
- Start compilation with this command:

```
cargo tauri build
tauri build
```

You'll find the installer in the `.\src-tauri\target\release\bundle` folder.
### - Or simply download and run the [realease](https://github.com/spel987/Automatic-File-Uploader/releases/latest).
### - Or simply download and run the [release](https://github.com/spel987/Automatic-File-Uploader/releases/latest).

Additional information: I'm not providing a portable version at the moment. In fact, Tauri creates a `C:\Users\<User>\AppData\Local\Automatic-File-Uploader` folder containing the data required by the Webview.

# Use

Currently, my application supports **43 hosting sites**.
Currently, my application supports **45 hosting sites**.

So you can upload your files remotely and get the download link created. You can also upload your file to several hosts simultaneously and retrieve all the links created.

I've provided predefined profiles to simplify things, but if you like, you can create your own profiles with your chosen hosts. Rename them, change hosts and, if necessary, delete them.

You have access to a history of links created, showing its upload date and the time remaining before it expires. When your file has expired, this is indicated. You can easily clear the history.

Every day, a check is made to see if the hosts are still online. If this is not the case, the script makes it unavailable.
Every 12 hours, a check is made to see if the hosts are still online. If this is not the case, the script makes it unavailable.

You can manually delete the file uploaded to the host from the history, provided that the host is able to delete it and offers the ability to do so. You'll find a list below.

Expand All @@ -62,7 +62,7 @@ fn main() {
    let CREATE_NO_WINDOW = 0x08000000;

    let child = Command::new("cmd")
.args(["/C", "cd", "Resources", "&&", "warp-cors.exe", "--port", "61337"])
.args(["/C", "cd", "Resources", "&", "warp-cors.exe", "--port", "61337"])
        .creation_flags(CREATE_NO_WINDOW)
        .spawn()
        .expect("Error launching warp-cors server process");
Expand Down Expand Up @@ -100,7 +100,7 @@ const url_for_bypass_cors = "http://127.0.0.1:61337"
else if (current_host === "oshi.at") {
   sent_data_form.append("f", file_to_upload);
   sent_data_form.append("expire", "120");
   upload_to_host([url_for_bypass_cors + "https://oshi.at/", "POST", sent_data_form], "text", ["match", /(?<=DL: )\S+/], [], [["match", /(?<=MANAGE: )\S+/], "GET"]);
   upload_to_host([url_for_bypass_cors + "https://oshi.at/", "POST", sent_data_form], "text", ["match", /(?<=DL: )\S+/, 0], [], [["match", /(?<=MANAGE: )\S+/], "GET", {}, ["", "?delete=1"]]);
}
```

Expand All @@ -109,97 +109,75 @@ else if (current_host === "oshi.at") {
Below is a table of the hosting providers currently supported by the application.
<table></table>

| Name | Url | Max files size | Time to file expiration | Uses warp-cors to work |
| ------------- | ------------- | ------------- | ------------- | ------------- |
| Gofile | https://gofile.io | infinite | 10d | Yes |
| Litterbox | https://litterbox.catbox.moe | 1GB | 24h | Yes |
| File.io | https://file.io | 2GB | 14d | No |
| TmpFiles.org | https://tmpfiles.org | 100MB | 1h | No |
| 0x0.st | https://0x0.st/ | 512MB | depends on the size of your file | Yes |
| c-v.sh | https://c-v.sh | 4GB | depends on the size of your file | Yes |
| ki.tc | https://ki.tc | 400MB | depends on the size of your file | Yes |
| Oshi.at | https://oshi.at/ | 5GB | 2h | Yes |
| Filebin | https://filebin.net/ | infinite | 7d | Yes |
| transfer.sh | https://transfer.sh | 10GB |14d | Yes |
| bashupload | https://bashupload.com | 50GB | 3d | Yes |
| Curl.by | https://curl.by | 32MB | 30d | Yes |
| x0.at | https://x0.at | 50MB | depends on the size of your file | Yes |
| Uplooad | https://uplooad.net | 1GB | 2d | Yes |
| Tommo.team | https://tommo.team | 4GB | 30d | Yes |
| AnonymFile | https://anonymfile.com | 7.17GB | 7d | No |
| Anyfile | https://anyfile.co | 7.17GB | 7d | No |
| Gofile.cc | https://gofile.cc | 7.17 | 7d | No |
| tempfiles.ninja | https://tempfiles.ninja | 100MB | 24h | Yes |
| Pixeldrain | https://pixeldrain.com | 20GB | 90d | Yes |
| 1Cloudfile | https://1cloudfile.com | 5GB | 30d | Yes |
| Bowfile | https://bowfile.com | 5GB | 30d | Yes |
| Uploadify | https://uploadify.net | 2GB | infinite | Yes |
| AnonFiles.me | https://anonfiles.me | 7.17GB | 7d | No |
| AnonTransfer | https://anontransfer.com | 1GB | 30d | Yes |
| AnonSharing | https://anonsharing.com | 1GB | 180d | Yes |
| Temp.sh | https://temp.sh | 4GB | 3d | Yes |
| Uguu.se | https://uguu.se | 32MB | 3h | Yes |
| Nopaste | https://nopaste.net | 2GB | 21d | Yes |
| udrop | https://udrop.com | 10GB | infinite | Yes |
| Tempsend | https://tempsend.com | 2GB | 7d | Yes |
| 1fichier | https://1fichier.com | infinite | infinite | Yes |
| Turbobit | https://turbobit.net | 200MB | infinite | Yes |
| Hitfile | https://hitfile.net | 100GB | 30d | Yes |
| file-upload.org | https://file-upload.org | 200MB | 60d | Yes |
| HexUpload | https://hexupload.net | 2GB | 60d | Yes |
| Mexa.sh | https://mexa.sh | 500MB | 60d | Yes |
| RapidFileShare | http://rapidfileshare.net | 512MB | 5d | Yes |
| Send.cm | https://send.cm | 100GB | 15d | Yes |
| up-load.io | https://up-load.io | 100MB | infinite | Yes |
| Usercloud | https://usercloud.com | 5GB | infinite | Yes |
| FileTmp | https://filetmp.com | 300MB | infinite | Yes |
| Bayfiles.io | https://bayfiles.io | 7.17GB | 7d | No |

In all, Automatic-File-Uploader lets you upload your files to **43 different hosts** !
| Name | Url | Max files size | Time to file expiration | Uses warp-cors to work | Supports manual deletion |
| ---- | ---- | ---- | ---- | ---- | ---- |
| Gofile | https://gofile.io | infinite | 10 days | Yes ||
| Litterbox | https://litterbox.catbox.moe | 1GB | 24 hours | Yes ||
| File.io | https://file.io | 2GB | 14 days | No ||
| TmpFiles.org | https://tmpfiles.org | 100MB | 1 hour | No ||
| 0x0.st | https://0x0.st | 512MB | depends on the size of your file* | Yes ||
| c-v.sh | https://c-v.sh | 4GB | depends on the size of your file* | Yes ||
| ki.tc | https://ki.tc | 400MB | depends on the size of your file* | Yes ||
| Oshi.at | https://oshi.at | 5GB | 2 hours | Yes ||
| Filebin | https://filebin.net | infinite | 7 days | Yes ||
| transfer.sh | https://transfer.sh | 10GB | 14 days | Yes ||
| bashupload | https://bashupload.com | 50GB | 3 days | Yes ||
| Curl.by | https://curl.by | 32MB | 30 days | Yes ||
| x0.at | https://x0.at | 50MB | depends on the size of your file* | Yes ||
| Uplooad | https://uplooad.net | 1GB | 2 days | Yes ||
| Tommo.team | https://tommo.team | 4GB | 30 days | Yes ||
| tempfiles.ninja | https://tempfiles.ninja | 100MB | 24 hours | Yes ||
| Pixeldrain | https://pixeldrain.com | 20GB | 90 days | Yes ||
| 1Cloudfile | https://1cloudfile.com | 5GB | 30 days | Yes ||
| Bowfile | https://bowfile.com | 5GB | 30 days | Yes ||
| Uploadify | https://uploadify.net | 2GB | infinite | Yes ||
| AnonTransfer | https://anontransfer.com | 1GB | 30 days | Yes ||
| AnonSharing | https://anonsharing.com | 1GB | 180 days | Yes ||
| Temp.sh | https://temp.sh | 4GB | 3 days | Yes ||
| Uguu.se | https://uguu.se | 32MB | 3 hours | Yes ||
| Nopaste | https://nopaste.net | 2GB | 21 days | Yes ||
| udrop | https://udrop.com | 10GB | infinite | Yes ||
| Tempsend | https://tempsend.com | 2GB | 7 days | Yes ||
| 1fichier | https://1fichier.com | infinite | infinite | Yes ||
| Turbobit | https://turbobit.net | 200MB | infinite | Yes ||
| Hitfile | https://hitfile.net | 100GB | 30 days | Yes ||
| file-upload.org | https://file-upload.org | 200MB | 60 days | Yes ||
| HexUpload | https://hexload.com | 2GB | 60 days | Yes ||
| Mexa.sh | https://mexa.sh | 500MB | 60 days | Yes ||
| RapidFileShare | http://rapidfileshare.net | 512MB | 5 days | Yes ||
| Send.cm | https://send.cm | 100GB | 15 days | Yes ||
| up-load.io | https://up-load.io | 100MB | infinite | Yes ||
| Usercloud | https://usercloud.com | 5GB | infinite | Yes ||
| FileTmp | https://filetmp.com | 300MB | infinite | Yes ||
| UsersDrive | https://usersdrive.com | 2.25GB | 10 days | Yes ||
| Download.gg | https://download.gg | 25GB | infinite | Yes ||
| MegaUp | https://megaup.net | 5GB | 60 days | Yes ||
| KrakenFiles | https://krakenfiles.com | 1GB | 30 days | Yes ||
| Clicknupload | https://clicknupload.click | 2GB | 7 days | Yes ||
| Daily Uploads | https://dailyuploads.net | 4GB | 10 days | Yes ||
| Upload.ee | https://upload.ee | 100MB | 50 days | Yes ||

In all, Automatic-File-Uploader lets you upload your files to **45 different hosts** !

If you know of a host that has an API or just a CLI interface (without token or authentication key), please open an [issue](https://github.com/spel987/Automatic-File-Uploader/issues).

Video demonstration :

[![Automatic-File-Upload 1.3.0 Video Demonstration](https://i.imgur.com/ZzNsacz.png)](https://www.youtube.com/watch?v=a-UuBO4uKXA)
# Hosts that support manual deletion of uploaded files

| Name | Url |
| ------------- | ------------- |
| Gofile | https://gofile.io |
| Oshi.at | https://oshi.at |
| Filebin | https://filebin.net/ |
| Uploadify | https://uploadify.net |
| udrop | https://udrop.com |
| 1fichier | https://1fichier.com |
*\* : "depends on the size of your file" means that the host keeps your files according to their weight. They use different algorithms. For more information, please visit the chosen site.*

# Made by and with

By :
By:
- Spel<br>
Discord : `spel987`<br>
Email : `[email protected]`<br>
GitHub : https://github.com/spel987

With :
- Rust : https://www.rust-lang.org
- Tauri : https://tauri.app/
- Tailwind CSS : https://tailwindcss.com/
- Flaticon (and author [Ilham Fitrotul Hayat](https://www.flaticon.com/fr/auteurs/ilham-fitrotul-hayat)): https://www.flaticon.com/fr/icone-gratuite/telecharger_2763883
- warp-cors : https://github.com/Bassetts/warp-cors
Email: `[email protected]`<br>
GitHub: https://github.com/spel987

With:
- Rust: https://www.rust-lang.org
- Tauri: https://tauri.app/
- Tailwind CSS: https://tailwindcss.com/
- Flaticon (and author [Ilham Fitrotul Hayat](https://www.flaticon.com/authors/ilham-fitrotul-hayat)): https://www.flaticon.com/free-icon/upload_2763883
- warp-cors: https://github.com/Bassetts/warp-cors
- All the sites listed in the table above

# Suggestions

If you have any questions or suggestions, please open an [issue](https://github.com/spel987/Automatic-File-Uploader/issues).

If you like this project or want to support it, you can make donations.

Ethereum :
```
0x79024c8eA7Bfdef93cBa538eB6288a9bB40eFC97
```
Bitcoin :
```
bc1qua3qmrhlv3e53ydynwvfc2wq8q7wteqxwlewa4
```
If you have any questions or suggestions, please open an [issue](https://github.com/spel987/Automatic-File-Uploader/issues).
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Automatic-File-Uploader",
"private": true,
"version": "1.3.0",
"version": "1.4.0",
"type": "module",
"devDependencies": {
"@tauri-apps/cli": "^1.5.0"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tauri-build = { version = "1.5", features = [] }
[dependencies]
serde = { version = "1.0.190", features = ["derive"] }
serde_json = { version = "1.0.108", features = ["preserve_order"] }
tauri = { version = "1.5", features = [ "fs-read-file", "shell-open", "fs-read-dir", "protocol-asset", "path-all", "window-start-dragging", "window-close", "window-minimize"] }
tauri = { version = "1.5", features = [ "window-unmaximize", "window-maximize", "fs-read-file", "shell-open", "fs-read-dir", "protocol-asset", "path-all", "window-start-dragging", "window-close", "window-minimize"] }

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
Expand Down
25 changes: 22 additions & 3 deletions src-tauri/Resources/profiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"www.udrop.com",
"1fichier.com",
"hitfile.net",
"send.cm"
"send.cm",
"download.gg"
],
"No retention period": [
"uploadify.net",
Expand All @@ -17,7 +18,8 @@
"turbobit.net",
"up-load.io",
"userscloud.com",
"filetmp.com"
"filetmp.com",
"download.gg"
],
"Retention period of less than one day": [
"litter.catbox.moe",
Expand All @@ -30,8 +32,25 @@
"gofile.io",
"oshi.at",
"filebin.net",
"uplooad.net",
"tempfiles.ninja",
"1cloudfile.com",
"bowfile.com",
"uploadify.net",
"anonsharing.com",
"www.udrop.com",
"1fichier.com"
"1fichier.com",
"file-upload.org",
"hexload.com",
"mexa.sh",
"www.rapidfileshare.net",
"up-load.io",
"userscloud.com",
"usersdrive.com",
"download.gg",
"megaup.net",
"clicknupload.click",
"dailyuploads.net",
"www.upload.ee"
]
}
2 changes: 1 addition & 1 deletion src-tauri/Resources/prohibited_format.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"x0.at": ["exe", "rar", "jar", "apk", "scr", "dll"],
"a.uguu.se": ["exe"],
"www.udrop.com": ["exe", "dll", "apk", "html"],
"hexupload.net": ["jpeg", "jpg", "png"],
"hexload.com": ["jpeg", "jpg", "png"],
"mexa.sh": ["exe"]
}
11 changes: 8 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "Automatic-File-Uploader",
"version": "1.3.0"
"version": "1.4.0"
},
"tauri": {
"allowlist": {
Expand All @@ -19,6 +19,8 @@
"window": {
"close": true,
"minimize": true,
"unmaximize": true,
"maximize": true,
"startDragging": true
},
"path": {
Expand Down Expand Up @@ -61,12 +63,15 @@
"windows": [
{
"fullscreen": false,
"resizable": false,
"resizable": true,
"title": "Automatic-File-Uploader",
"width": 1100,
"height": 700,
"minWidth": 1100,
"minHeight": 700,
"decorations": false,
"fileDropEnabled": false
"fileDropEnabled": false,
"transparent": true
}
]
}
Expand Down
Binary file added src/images/clicknupload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/downloadgg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/krakenfiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/megaup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/uploadee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/usersdrive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4e1392b

Please sign in to comment.