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

@@ -24,7 +24,7 @@ pixeldrain also supports previews for images, videos, audio, PDFs and much more.
<meta name="keywords" content="file sharing, free file sharing, file transfer, <meta name="keywords" content="file sharing, free file sharing, file transfer,
free file transfer, file hosting, free file hosting, hosting, file upload, free file transfer, file hosting, free file hosting, hosting, file upload,
free file upload, uploading, send file, large file, free file sharing, free file upload, uploading, send file, large file, free file sharing,
free file transfer, 10 GB free, free file sending, file storage, cloud storage, free file transfer, 20 GB free, free file sending, file storage, cloud storage,
free cloud storage, image hosting, image sharing, photo hosting, free cloud storage, image hosting, image sharing, photo hosting,
photo transfer, photo sharing, video hosting, video sharing, video transfer, photo transfer, photo sharing, video hosting, video sharing, video transfer,
document sharing, upload documents, send documents, huge file, large video, document sharing, upload documents, send documents, huge file, large video,

View File

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

View File

@@ -19,9 +19,9 @@ onMount(() => {
</div> </div>
<div> <div>
<div class="feat_label">Size limit per file</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"> <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> </div>
<div> <div>
@@ -29,10 +29,10 @@ onMount(() => {
File expiry File expiry
</div> </div>
<div class="feat_normal"> <div class="feat_normal">
30 days after the last time it is viewed 60 days after the last time it is viewed
</div> </div>
<div class="feat_pro"> <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/> <br/>
<button class="round" on:click={file_expiry.toggle}> <button class="round" on:click={file_expiry.toggle}>
<i class="icon">info</i> <i class="icon">info</i>
@@ -53,7 +53,7 @@ onMount(() => {
Data transfer limit Data transfer limit
</div> </div>
<div class="feat_normal"> <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 your download speed will be reduced
</div> </div>
<div class="feat_pro"> <div class="feat_pro">
@@ -166,8 +166,8 @@ onMount(() => {
</p> </p>
<p> <p>
Unlike most other sharing sites pixeldrain uses a postponing system for Unlike most other sharing sites pixeldrain uses a postponing system for
expiring files. When a file is freshly uploaded it gets 30 days by expiring files. When a file is freshly uploaded it gets 60 days by
default (90 days if you have the pro plan). After these 30 days we will 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 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 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 these people a File Not Found page. So if the file was viewed in the

View File

@@ -14,7 +14,7 @@
</div> </div>
<div class="feat_pro features_cell round_tr"> <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">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">2 TB</span> transfer limit</div>
<div><span class="text_highlight">No storage limit</span></div> <div><span class="text_highlight">No storage limit</span></div>
</div> </div>

View File

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