Server error: /home/ozn/wikis/wikidata/static/Error_Building_The_Work_Space.jpg: openFile: does not exist (No such file or directory)
as a work around I copied "static" into wikidata, and put the images inside it.
$ ls wikidata/static/
css Error_Building_The_Work_Space.jpg screenshot.1.jpg Target_Editing.jpg
Empty_Target.jpg img Target_Content.jpg
The problem with this work around is that, new images are uploaded in wikidata and not to wikidata/static/.
I have no clue about Haskell. But, I think this is because in the file Handlers.hs the variable dropWhile is hard coded:
uploadFile :: Handler
uploadFile = withData $ \(params :: Params) -> do
let origPath = pFilename params
let filePath = pFilePath params
let wikiname = normalise
$ dropWhile (=='/')
IMHO, it would make sense to make this a configurable option.
Sounds related to #353 and #346.