Right now, if you're logged in and you go to a page in the File namespace, there is an Upload page action button. It's not clear from the context what this button actually does, but given its function on article pages and the fact that it is a "page action", I would expect it to replace the current image on the file page with a newly uploaded image.
What it actually does is pretty nuts:
- It uploads the new image to a new file page.
- It creates a new main namespace page based on the name of the file page you were uploading from and inserts the new image into it.
- It lazy-loads the main namespace page even though you are still in file namespace.
We could try to fix this, but I'm really not sure exactly what the correct behavior would be. Instead I think we should just disable the upload page action from within file pages (which is a 2 line change in modules/uploads/init.js).