Wikipedia talk:File Upload Wizard
This is not the page to ask for help or test edits.
To make test edits, please use the Sandbox. For other help, please see our main help page. |
To help centralise discussions and keep related topics together, MediaWiki talk:FileUploadWizard.js redirects here. |
|
||||||||
Add webP and webM as accepted formats[edit]
This edit request to MediaWiki:FileUploadWizard.js has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
WebP and webM are open formats, but this Wizard hasn't yet accepted them. Someone else brought up webP last year. Similar to my request on adding mp3, for MediaWiki:FileUploadWizard.js, the following must be added: image/webp
and video/webm
for filebox.accept
(line 103); webp
and webm
for name.replace
(line 1819) and var extensions
(line 1852). Both formats must be also listed as "Permitted file types". --George Ho (talk) 01:19, 8 February 2022 (UTC)
- @George Ho: here are the lines you referenced (103, 1819, 1848-1864)
- 103
filebox.accept = 'image/png,image/jpeg,image/gif,image/svg+xml,image/tiff,image/x-xcf,application/pdf,image/vnd.djvu,audio/ogg,video/ogg,audio/rtp-midi,audio/mp3';
- 1819-1827
// common generic filename patterns:
// IMG......jpg
// Image....jpg
// DSC......jpg
// Picture......jpg
// Pic..........jpg
// anything that has fewer than 3 alphabetic letters and then just numbers
var pattern = /^(img|image|dsc|picture|pic)?(\\s*|\\_*|[a-z]{,3})?\\d+$/i;
var auto = name.match(pattern);
- 1848-4864
var mimetypes = {
"png" : "image/png",
"gif" : "image/gif",
"jpg" : "image/jpeg",
"jpeg" : "image/jpeg",
"xcf" : "image/x-xcf",
"pdf" : "application/pdf",
"mid" : "audio/rtp-midi",
"ogg" : "audio/ogg",
"mp3" : "audio/mp3",
"ogv" : "video/ogg",
"svg" : "image/svg+xml",
"djvu" : "image/vnd.djvu",
"tiff" : "image/tiff",
"tif" : "image/tiff",
"oga" : "video/ogg"
};
- On hold I think at least one of your line numbers is wrong. I made a sandbox for you at User:George Ho/sandbox.js, please make the changes you are requesting there, then reactivate the edit request above when ready. — xaosflux Talk 14:19, 9 February 2022 (UTC)
- @Xaosflux: Ready. Added webp and webm in my sandbox version. Please feel free to delete the .js page when you're done with this request. George Ho (talk) 21:04, 9 February 2022 (UTC)
- Doing... Reviewing. — xaosflux Talk 21:18, 9 February 2022 (UTC)
- @George Ho: this is Done and Done, thank you! — xaosflux Talk 21:21, 9 February 2022 (UTC)
Update documentation[edit]
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Disaster below averted; now the "webp" and "webm" should be listed amongst "Permitted file types" when opening the Wizard. --George Ho (talk) 21:54, 9 February 2022 (UTC)
Interface-protected edit request on 9 February 2022[edit]
This edit request to MediaWiki:FileUploadWizard.js has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
@Xaosflux: I think you or I must have accidentally omitted one comma at line 1864, causing people to be unable to use the Wizard. The comma should be added after "oga" : "video/ogg"
in order for the Wizard to work properly. --George Ho (talk) 21:40, 9 February 2022 (UTC) George Ho (talk) 21:40, 9 February 2022 (UTC)
Add opus, mpg, and mpeg as accepted formats[edit]
This edit request to MediaWiki:FileUploadWizard.js has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I re-copied the .js code of the Wizard into my sandbox and then added "opus", "mpg", and "mpeg". I hope the Wizard accepts these formats, which are included in Special:Upload. When done, please re-delete the sandbox page. BTW, are "mpg" and "mpeg" the same or different? --George Ho (talk) 08:09, 10 February 2022 (UTC)
- Not done for now, at least; "video/mpg" is not a valid MIME type that I know of (could be wrong, though). To answer your question, I *think* they are two different file extensions that represent the same file type. Writ Keeper ⚇♔ 16:23, 10 February 2022 (UTC)
- If I'm reading correctly, I think what needs to be changed for this edit request is
audio/opus,video/mpg,video/mpeg
should be changed to justaudio/opus,video/mpeg
for line 101, and then"mpg" : "video/mpg",
should be"mpg" : "video/mpeg",
on line 1865. Does that look right? Writ Keeper ⚇♔ 16:31, 10 February 2022 (UTC)- Eliminated
video/mpg
, leftvideo/mpeg
remaining. If done, then please re-delete the sandbox version. --George Ho (talk) 19:17, 10 February 2022 (UTC)- Okay, Done, minus a few stray commas. Writ Keeper ⚇♔ 19:21, 10 February 2022 (UTC)
- Eliminated
Add into Permitted file types (10 Feb 2022)[edit]
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Thanks. Now "opus", "mpg", and "mpeg" should be listed as part of "Permitted file types". --George Ho (talk) 19:51, 10 February 2022 (UTC)
Non-free uploader not working in phones[edit]
Hello, the 'upload a non-free file' option is not working in smartphones. I clicked it multiple times from my smartphone, but nothing is happening. Just the page is reloading. Please fix this problem. ThePremiumBoy 09:03, 10 February 2022 (UTC)
Accept wav and flac[edit]
This edit request to MediaWiki:FileUploadWizard.js has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I was initially reluctant to request adding WAV and FLAC as accepted formats due to their huge sizes and being lossless or uncompressed. However, in one village pump discussion, many (or several) editors approved WAV and FLAC as NFCC-compliant formats. I re-copied the whole source and then added wav and flac. If no one minds, those formats can be added as accepted formats. --George Ho (talk) 09:03, 5 March 2022 (UTC) George Ho (talk) 09:03, 5 March 2022 (UTC)
Almost forgot, please re-delete my sandbox version when the request is completely accepted or rejected. --George Ho (talk) 09:05, 5 March 2022 (UTC)
Add into Permitted file types (12 March 2022)[edit]
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The wav, wave, and flac formats must also be listed as one of "Permitted file types". --George Ho (talk) 00:17, 12 March 2022 (UTC)
underscores in filenames[edit]
hi! On the final page, where it gives you wikicode to copy for images—those currently contain unnecessary underscores. theleekycauldron (talk • contribs) (she/they) 23:59, 25 March 2022 (UTC)