Open Leochan6 opened 1 year ago
Thank you for letting me know, I will look into it as soon as I can
Would this be solved by updating this line in FileUploader.cs from
uploadFormData.Add(new StreamContent(file), "file", uploadFileName);
to
uploadFormData.Add(new StreamContent(file), "file", Uri.EscapeDataString(uploadFileName));
When uploading a file that has been renamed before uploading, if the name contains a quotation mark (") it will result in an error saying the name is invalid.
While quotation marks cannot be the original file name on Windows, they are not considered illegal characters in file names on MediaWiki, so renaming them in Wiki-Up directly would be better than having to move or create redirect after upload.