= Description = MoinMoin returns a UnicodeError when we try to upload a binary file. == Steps to reproduce == ## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it. 1. Upload a binary file from any page == Details == Here is the error log: [[attachment:uploadbinaryerror.html]] ## If you got a traceback, please save the traceback page as html and attach here: ## attachment:traceback.html ## if the bug is in this wiki, just kill the table and write: This Wiki. ## If a traceback is not available, please fill in the details here: || '''!MoinMoin Version''' || 1.5.1 || || '''OS and Version''' || Windows Server 2003 SP1 || || '''Python Version''' || 2.4.2 || || '''Server Setup''' || Apache 2.0.55 || || '''Server Details''' || Using mod_python 3.1.4 || == Workaround == ## How to deal with the bug until it is fixed = Discussion = The bug looks like the one solved in MoinMoinBugs/AttachmentsDontWork . I though about applying that patch to see if it would solve the problem but it seems like that patch was already part of MoinMoin 1.5.1. -- RemyRoy No, it was not. Please specify your ModPy version. Applying the patch from MoinMoinBugs/AttachmentsDontWork do not solve the problem. -- RemyRoy Sure, because that fixed a cgi problem in code that is not used for modpy. It looks like RequestModPy._setup_args_from_cgi_form does not work correctly for you and does not setup the file__filename__ key. This decodeArgs thinks it is a user form (text) input and tries to decode it. I found the problem. It's a bug with mod_python and windows. Every details about it and the patch can be found here: http://www.modpython.org/pipermail/mod_python/2004-March/015225.html . I applied the patch and everything works fine. -- RemyRoy = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: Duplicate of MoinMoinBugs/ModPyDoesNotAcceptFileUpload ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinNoBug