MER-C/wiki-java

Feature Request: Chunked Uploads

Closed this issue · 6 comments

Chunked uploads was recently added to the mediawiki API: 
[http://www.mediawiki.org/wiki/API:Upload#Chunked_uploading].  If it's not too 
much trouble, would it be possible to have a method for it added to Wiki.java?

Original issue reported on code.google.com by alec.b...@gmail.com on 18 Jul 2012 at 11:21

Done in r75, though I haven't tested it. Please close this issue if it works.

Original comment by stop.squark on 25 Jul 2012 at 12:57

It doesn't appear to be working, unfortunately.  I've tested the method (with a 
test program attached below) with these files: 
[http://dl.dropbox.com/u/76520097/TestUploadFiles.zip].  I get an IOException 
if the file > 4MB and a false success message if the file is < 4MB (i.e. no 
change is made to the Wiki).

Original comment by alec.b...@gmail.com on 25 Jul 2012 at 9:41

Attachments:

Fixed both these issues (first one was caused by wrong order of operations, 
second caused by multiple things) in r76.

Original comment by stop.squark on 26 Jul 2012 at 12:20

  • Changed state: Fixed
Thanks for that!  There's still a minor issue with the "String contents" and 
"String reason" params.  After uploading a big file (I used a ~20Mb files of 
various types/extensions), it would appear that the associated file description 
page and edit summary are not being filled in; the file appears on the Wiki 
with a blank file description page and edit summary.  Can this be fixed?

Original comment by alec.b...@gmail.com on 26 Jul 2012 at 10:13

Done in r79.

Original comment by stop.squark on 28 Jul 2012 at 3:13

Great!  Thanks for that :D

Original comment by alec.b...@gmail.com on 31 Jul 2012 at 12:17