Run 'UploadStashFile' hook for chunked uploads too
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 17 Aug 2016 13:31:22 +0000 (15:31 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 17 Aug 2016 15:53:08 +0000 (17:53 +0200)
commitc9b5b3e988e3554c231860a2da587dff16b05e0c
treecf40415a70567be75d2ec3ba11a94a445af107fd
parent715b8fb97c82d42245e6c563fce4e3b5b748a733
Run 'UploadStashFile' hook for chunked uploads too

In UploadFromChunks, doStashFile() only stashes the current chunk,
and stashing the whole file after all chunks are uploaded is done
in concatenateChunks().

Also more custom code on top of custom code to handle ApiMessage
errors, because action=upload is special.

Follow-up to 2ee27d9a4de163dc3a2b752823a04f5338005627.

Change-Id: I968280353f15bbca9b1059631fa2cfd7c3cd2f1d
includes/api/ApiUpload.php
includes/upload/UploadBase.php
includes/upload/UploadFromChunks.php