https://bugzilla.wikimedia.org/show_bug.cgi?id=41190
Web browser: ---
Bug #: 41190
Summary: Uploading file with a slash in name
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
If you use a "/" in the filename for an api upload such as:
Content-Disposition: form-data; name="filename"
Content-Type: text/plain
Gerald Ford Papers- Final Issues for Decision, Army Corps of Engineers- 12/4/74
- HEW and Labor(Gerald Ford Library)(1554461).pdf
The response cuts out the everything before the final slash:
<api>
<upload result="Success"
filename="74_-_HEW_and_Labor(Gerald_Ford_Library)(1554461).pdf">
<warnings badfilename="74_-_HEW_and_Labor(Gerald_Ford_Library)(1554461).pdf"
exists="74_-_HEW_and_Labor(Gerald_Ford_Library)(1554461).pdf" />
The full filename isn't even given back in the badfilename.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l