Opened 13 years ago
Closed 13 years ago
#311 closed defect (wontfix)
FileTreePanel - upload - always the same error message
Reported by: | adube | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.2.0 |
Component: | widgets | Version: | |
Keywords: | Cc: |
Description
Issue
Currently, if an error occurs while uploading a file using the FileTreePanel, the error shown when hovering the ! image next to the file always shows "Unknown error"
Cause
The javascript components creating this image uses the id of the Ext element representing the image as the key in the error message hash. Currently, the server doesn't use that id and use "message" instead (because it doesn't know about that id). That causes the issue.
When an error occurs, using Firebug, you can see that the error message is clear, but because it's set in 'message' instead of (for example) 'Ext-id-13532' then it's ignored and the default error message is shown.
Solution
Send the Ext id when doing the request so that the server-side can know about it and use it in its error messages.
The upload method was changed in #320, so this fix is no longer required. The message is correctly returned in case of an error.