Raise file size and expiry

This commit is contained in:
2022-09-27 11:47:39 +02:00
parent afbb86b8c2
commit 175a025f20
5 changed files with 24 additions and 12 deletions

View File

@@ -58,7 +58,7 @@ onMount(() => {
<p>
You have used {formatDataVolume(limits.transfer_limit_used, 3)} of
your daily {formatDataVolume(limits.transfer_limit, 3)} transfer
your weekly {formatDataVolume(limits.transfer_limit, 3)} transfer
limit. When the transfer limit is exceeded your download speed will
be reduced.
</p>

View File

@@ -19,9 +19,9 @@ onMount(() => {
</div>
<div>
<div class="feat_label">Size limit per file</div>
<div class="feat_normal">10 GB per file (9.31 GiB)</div>
<div class="feat_normal">20 GB per file (18.63 GiB)</div>
<div class="feat_pro">
<span class="text_highlight">20 GB</span> per file (18.63 GiB)
<span class="text_highlight">50 GB</span> per file (46.57 GiB)
</div>
</div>
<div>
@@ -29,10 +29,10 @@ onMount(() => {
File expiry
</div>
<div class="feat_normal">
30 days after the last time it is viewed
60 days after the last time it is viewed
</div>
<div class="feat_pro">
<span class="text_highlight">90 days</span> after the last time it is viewed
<span class="text_highlight">120 days</span> after the last time it is viewed
<br/>
<button class="round" on:click={file_expiry.toggle}>
<i class="icon">info</i>
@@ -53,7 +53,7 @@ onMount(() => {
Data transfer limit
</div>
<div class="feat_normal">
10 GB data transfer per 24 hours. When this threshold is reached
20 GB data transfer per week (168 hours). When this threshold is reached
your download speed will be reduced
</div>
<div class="feat_pro">
@@ -166,8 +166,8 @@ onMount(() => {
</p>
<p>
Unlike most other sharing sites pixeldrain uses a postponing system for
expiring files. When a file is freshly uploaded it gets 30 days by
default (90 days if you have the pro plan). After these 30 days we will
expiring files. When a file is freshly uploaded it gets 60 days by
default (120 days if you have the pro plan). After these 60 days we will
check when the file was last viewed. Files which are regularly viewed
could still bring new users to the platform, it would be rude to show
these people a File Not Found page. So if the file was viewed in the

View File

@@ -14,7 +14,7 @@
</div>
<div class="feat_pro features_cell round_tr">
<div><span class="text_highlight">20 GB</span> max file size</div>
<div><span class="text_highlight">180 days</span> file expiry</div>
<div><span class="text_highlight">240 days</span> file expiry</div>
<div><span class="text_highlight">2 TB</span> transfer limit</div>
<div><span class="text_highlight">No storage limit</span></div>
</div>

View File

@@ -1,6 +1,7 @@
<script>
import { add_upload_history, domain_url } from "../util/Util.svelte"
import { formatDataVolume, formatDuration} from "../util/Formatting.svelte"
import Spinner from "../util/Spinner.svelte";
export let job = {}
let file_button
@@ -33,6 +34,13 @@ const on_progress = () => {
last_loaded_size = job.loaded_size
progress_bar.style.width = (progress * 100) + "%"
if (progress >= 1) {
job.status = "processing"
progress_bar.style.opacity = "0"
} else {
progress_bar.style.opacity = "1"
}
}
let href = null
@@ -79,9 +87,9 @@ const on_failure = (status, message) => {
export const start = () => {
job.status = "uploading"
// Check the file size limit. For free accounts it's 10 GB
// Check the file size limit. For free accounts it's 20 GB
if (window.user.subscription.file_size_limit === 0) {
window.user.subscription.file_size_limit = 10e9
window.user.subscription.file_size_limit = 20e9
}
if (job.total_size > window.user.subscription.file_size_limit) {
on_failure(
@@ -168,6 +176,8 @@ export const start = () => {
<i class="icon">cloud_queue</i>
{:else if job.status === "uploading"}
<i class="icon">cloud_upload</i>
{:else if job.status === "processing"}
<Spinner></Spinner>
{:else if job.status === "finished"}
<img src="/api/file/{job.id}/thumbnail" alt="file thumbnail" />
{:else if job.status === "error"}
@@ -195,6 +205,8 @@ export const start = () => {
<div class="stat">
{formatDataVolume(transfer_rate, 3)}/s
</div>
{:else if job.status === "processing"}
Calculating parity data...
{:else if job.status === "finished"}
<span class="file_link">
{domain_url() + "/u/" + job.id}