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
Choose AttachFile
- Upload a file
- After Upload the query-string simply shows the page name without action-supplement
Example
Details
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
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 2006-08-08 15:23:24
Plan
- Priority:
- Assigned to:
- Status: