= Description = When uploading a file with the "action=AttachFile", after the successful upload of the desired file, the "action=AttachFile" is lost in the query-string / adressline of the browser. == Steps to reproduce == ## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it. 1. Choose AttachFile 2. Upload a file 3. After Upload the query-string simply shows the page name without action-supplement == Example == ##Add URL that show the bug, screenshot or test wiki markup that fail... ##URL: ##attachment:screenshot.png ##{{{ ##Example wiki markup that fail ##}}} == Details == ## 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.4 || || '''OS and Version''' || || || '''Python Version''' || || || '''Server Setup''' || || || '''Server Details''' || || || '''Language you are using the wiki in''' (set in the browser/UserPreferences) || || == Workaround == ## How to deal with the bug until it is fixed = Discussion = Why is this a bug? There is no way for the programmer to recognize wether the wikipage is shown or some meta-information as "info" or "AttachFile". I use in my theme "self.request.query_string" to build the sidebars depending on the situation, the user is in. When the user sees meta-information on the current wikipage (like info, diff,), he gets a new button in the sidebar, to return to the original page. That's just for user convinience. I know there are other ways to achieve this like clicking on the sitename in the navibar. For me, this seems to be a bug, since it's some incoherent behaviour. Normally, you always do have the action-supplement when metainfo on the original wikipage is shown. And after file upload you do not see the original page.. Well, I think we could implement that. It is maybe useful if you want to attach multiple files or see your upload has really worked in the attachment list. Maybe we should introduce after as successfull fileupload something like that "?action=AttachFile&msg=SuccessfullUpload&target=filename.type" and others e.g. "UploadFailed" "FileDeleted" "LoadFailed" "ShowFailed"... The supplement would at the same time also describe the messagebox the user sees on the screen. The benefit of this solution for me as programmer would be, that I always know, what happens an I can react on that accordingly, e.g. through offering special menus in the sidebar, with help content.. May be the rename name for an upload could be cleared after the upload so you can upload an additional file without emptying that manually. -- ReimarBauer <> = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: ---- ## 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. CategoryMoinMoinBug