-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Implement file type validation to prevent unsupported uploads #6825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d93cda8
a9449f7
b7bc35d
006c48c
6a61b53
76a858d
1aeef3d
9ef0f29
ed3d378
955c376
d1c0f01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -904,4 +904,9 @@ Upload your first media by tapping on the add button.</string> | |
| <string name="license_cc0_long_description">This license allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, with no conditions.</string> | ||
| <string name="license_cc_by_long_description">This license allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes, as long as attribution is given to the creator.</string> | ||
| <string name="license_cc_by_sa_long_description">This license allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes, as long as attribution is given to the creator and the new work is licensed under identical terms.</string> | ||
|
|
||
| <string name="unsupported_format_title">Unsupported Format</string> | ||
| <string name="unsupported_format_desc">The selected files could not be opened. Wikimedia Commons strictly requires JPEG, PNG, or SVG formats.</string> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Problem: When we add a new supported format, this will need to be re-localized in dozens of languages. Is there any way to store "JPEG", "PNG", "SVG" as a list, and have the app use this list? Please note that This list should be used by unsupported_files_skipped_desc too. |
||
| <string name="unsupported_files_skipped_title">Unsupported Files Skipped</string> | ||
| <string name="unsupported_files_skipped_desc">Some files were skipped due to an unsupported format. The app will continue uploading your remaining JPEG, PNG, or SVG files.</string> | ||
| </resources> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make that comment more understandable to someone who is not familiar with the context?