polish archive size warning
copy, styling lowered the threshold to 10 MB and made it not disable the form in case someone does have a giant tweet archive
This commit is contained in:
parent
c89602315f
commit
93299bd72f
|
@ -76,6 +76,16 @@ img.avatar.mastodon {
|
||||||
padding-top: .6rem;
|
padding-top: .6rem;
|
||||||
padding-bottom: .6rem;
|
padding-bottom: .6rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
padding-left: 1rem;
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner p {
|
||||||
|
margin: .3rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner p ~ p {
|
||||||
|
margin-top: 1.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body > section > .banner,
|
body > section > .banner,
|
||||||
|
|
|
@ -1,13 +1,18 @@
|
||||||
<form action={action} method='post' enctype='multipart/form-data'>
|
<form action={action} method='post' enctype='multipart/form-data'>
|
||||||
{#if file_too_big}
|
{#if file_too_big}
|
||||||
<div class="banner warning">
|
<div class="banner warning">
|
||||||
The file you've selected is too large to upload.
|
<p>The file you have selected is very large.</p>
|
||||||
blah
|
|
||||||
|
<p>Twitter has two types of archives, <b>Forget does not support
|
||||||
|
"Your Twitter data" archives, only "Tweet archives"</b>
|
||||||
|
available from
|
||||||
|
<a href="https://twitter.com/settings/account#export_request">your account settings</a>.
|
||||||
|
Please make sure you have the right type of archive.</p>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<input type="file" name="file" accept="application/zip,.zip"
|
<input type="file" name="file" accept="application/zip,.zip"
|
||||||
on:change="take_file(this.files)">
|
on:change="take_file(this.files)">
|
||||||
<input type="submit" value="Upload" disabled={file_too_big}>
|
<input type="submit" value="Upload">
|
||||||
<input type='hidden' name='csrf-token' value={csrf_token}>
|
<input type='hidden' name='csrf-token' value={csrf_token}>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -38,7 +43,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
file_too_big: ({file_size}) => file_size > 20000000, // 20 MB
|
file_too_big: ({file_size}) => file_size > 10000000, // 10 MB
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -139,8 +139,8 @@
|
||||||
|
|
||||||
<h2 id='tweet_archive_import'>Tweet archive import</h2>
|
<h2 id='tweet_archive_import'>Tweet archive import</h2>
|
||||||
<p>
|
<p>
|
||||||
Twitter's API only lets us access up to 3200 of your most recent tweets. If you have more tweets than that, you can request a zip archive of your tweets from
|
Twitter's API only lets us access up to 3200 of your most recent tweets. If you have more tweets than that, you can request a tweet archive from
|
||||||
<a href="https://twitter.com/settings/account">Twitter's settings page</a>,
|
<a href="https://twitter.com/settings/account#export_request">your account settings</a>,
|
||||||
and upload it here.
|
and upload it here.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue