Closed leonard84 closed 8 years ago
Sounds good, can you submit a patch?
Done, could you please publish a new release when #62 is merged, it is effectively blocking our use of jwbf.
@eldur great, could you please publish a bugfix release.
@eldur is there anything blocking a bugfix release?
holidays 😄
@eldur could you give me an ETA?
is released as 3.1.1
thanks
The FileUpload uses
simpleFile.getPath()
which just delegates tofile.getPath()
this causes issues if the path is relative, since relative paths are forbidden.uploadTokenAction = new GetApiToken(Intoken.EDIT, simpleFile.getPath());
For the actual upload it uses the correct title property of
SimpleFile
.param("filename", MediaWiki.urlEncode(simpleFile.getTitle()))
So all that is to do here is to change
uploadTokenAction = new GetApiToken(Intoken.EDIT, simpleFile.getPath());
touploadTokenAction = new GetApiToken(Intoken.EDIT, MediaWiki.urlEncode(simpleFile.getTitle()));