diff --git a/res/include/md/api_file.md b/res/include/md/api_file.md index ee120d5..d69fdfc 100644 --- a/res/include/md/api_file.md +++ b/res/include/md/api_file.md @@ -7,7 +7,8 @@ ### Description Upload a file. I recommend that you use the PUT API instead of the POST API. -It's easier to use. +It's easier to use and the multipart encoding of the POST API can cause +performance issues in certain environments. ### Parameters @@ -163,9 +164,8 @@ limit will be enabled if a file has three times more downloads than views. The owner of a file can always download it. When a file is rate limited the user will need to fill out a captcha in order to continue downloading the file. The captcha will only appear on the file viewer page (pixeldrain.com/u/{id}). Rate -limiting has been added to prevent the spread of viruses and to stop direct -linking. Direct linking is only allowed when files are uploaded using a Pro -account. +limiting has been added to prevent the spread of viruses and to stop hotlinking. +Hotlinking is only allowed when files are uploaded using a Pro account. Pixeldrain also includes a virus scanner. If a virus has been detected in a file the user will also have to fill in a captcha to download it. diff --git a/res/template/home.html b/res/template/home.html index 83a70db..b836c1d 100644 --- a/res/template/home.html +++ b/res/template/home.html @@ -192,7 +192,9 @@
+ More information about Hotlinking on Wikipedia. +
It's also possible to link directly to a file instead of the @@ -507,7 +495,7 @@ from the file viewer page. On the file viewer you will see a CAPTCHA to fill in when you click the download button.
-When you have a Pro subscription you will get a monthly bandwidth cap for all the files on your account combined. Normal @@ -549,14 +537,14 @@ } function explainDirectLinking() { let m = new Modal( - document.body, null, "Direct Linking Bandwidth", "800px", "auto" + document.body, null, "Hotlinking Bandwidth", "800px", "auto" ) m.cloneTemplate("tpl_direct_linking") m.open() return false } - if (window.location.hash === "#direct_linking") { + if (window.location.hash === "#direct_linking" || window.location.hash === "#hotlinking") { explainDirectLinking() } diff --git a/svelte/src/user_home/Home.svelte b/svelte/src/user_home/Home.svelte index d2ee7a1..189f4e8 100644 --- a/svelte/src/user_home/Home.svelte +++ b/svelte/src/user_home/Home.svelte @@ -155,11 +155,11 @@ onDestroy(() => {