Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

add alert when uploading multiple files #259

Merged
merged 3 commits into from
Jul 20, 2017
Merged

add alert when uploading multiple files #259

merged 3 commits into from
Jul 20, 2017

Conversation

dnarcese
Copy link
Collaborator

@dnarcese dnarcese commented Jul 19, 2017

Fixes #247
Fixes #248

@dnarcese dnarcese requested a review from ericawright July 19, 2017 21:27
@@ -4,10 +4,11 @@ uploadPageHeader = Private, Encrypted File Sharing
uploadPageExplainer = Send files through a safe, private, and encrypted link that automatically expires to ensure your stuff does not remain online forever.

uploadPageLearnMore = Learn more
uploadPageDropMessage = Drop your files here to start uploading
uploadPageDropMessage = Drop your file here to start uploading
Copy link
Contributor

Choose a reason for hiding this comment

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

Once we have other translations we'll need to change the key when we need to make changes to the string like this. For example if we were to change it back to "files" in v2 we'd rename the key to something likeuploadPageDropMultipleMessage or uploadPageDropMessage2.

file = event.originalEvent.dataTransfer.files[0];
} else {
if (event.target.files.length > 1){
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this case will ever happen as long as we don't have multiple on the input element, but there's no harm in checking here too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's true, I can remove that check.

@dnarcese dnarcese merged commit f816c0b into master Jul 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants