Skip to content

Conversation

ArmanNik
Copy link
Contributor

No description provided.

@ArmanNik ArmanNik self-assigned this May 21, 2025
function handleInvalid(e: CustomEvent) {
const reason = e.detail.reason;
if (reason === InvalidFileType.EXTENSION) {
error = 'Only .tar.gz files allowed';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we expect a txt file right?

if (reason === InvalidFileType.EXTENSION) {
error = 'Only .tar.gz files allowed';
} else if (reason === InvalidFileType.SIZE) {
error = 'File size exceeds 10MB';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can go smaller, its a txt file :-P

Upload a .txt file with your DNS records
</Typography.Text>
<Upload.Dropzone bind:files extensions={['txt']}>
maxSize={10000000}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is text?

@ArmanNik ArmanNik merged commit f4c26ee into main May 21, 2025
1 of 2 checks passed
@ArmanNik ArmanNik deleted the feat-show-invalid-upload-error branch May 21, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants