Replies: 7 comments 2 replies
-
|
Automatic URL shortening would be good. |
Beta Was this translation helpful? Give feedback.
-
|
Using a 3rd party to make it shorter is a good idea, I'm guessing it also has access to the files but only for the identifiers and metadata(?). |
Beta Was this translation helpful? Give feedback.
-
|
Hello there! I've been using your awesome code and this is the only critical negative point about, i'm agree with the server acessing the files to keep the url short as long a pop up warns the user about it when sharing, and as you said, sharing the file kinda make it public, the automatic 3rd party shortening ideia is good too, i'm on it. Here some info i've got after some research and tests, github maximum link lenght is 8201 characters, please note that most browsers doesn't support such long link's, i've tested with Opera/Chrome and they work fine, using 7zip to split files in 1600MB (1677721600 bytes) parts you get links with around 8000 characters. I'm using this workaround until the devs comes up with something, much luv u all. |
Beta Was this translation helpful? Give feedback.
-
|
I've thought about this for a while and I want to dump some ideas here, no complete solution yet, but open to suggestions:
Here are the options I've thought of so far:
Option 2 solves the issue better, but has a problem. |
Beta Was this translation helpful? Give feedback.
-
|
I think I have a even better solution, what if we use Gzip encryption to shorten the array of URLs. I have also combined this with removing the params from the returned URLs, as they dont seem to do anything? Will bow to your better judgement as you know the Discord API better than I do. But in my tests on a 1GB file (21 chunks) We reduce the URL length by a almost a factor of 10 The effect isn't as good for lower number files but it still works: So savings all across the board CodeSandbox here: Depending on feedback, I will build into the repo and submit a PR |
Beta Was this translation helpful? Give feedback.
-
|
Submited in #60 |
Beta Was this translation helpful? Give feedback.
-
|
https://discord.com/channels/613425648685547541/697138785317814292/1157372186160537750 potentially an issue further down the line, we may need to keep the params, but it will work for now |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
We would probably want the server to keep a shortened form, but that would require it to have access to the files.
Maybe this could be okay because shared files are already kind of public.
We could also solve this with automatic URL shortening using a 3rd party.
Which solution do you think is better?
Beta Was this translation helpful? Give feedback.
All reactions