The upload function saved the redirect page(s) content together with the upload file content which would produce an incorrect MIME type (text/html instead of actual upload MIME type). Disabled the automatic redirect and reset the file content until the final file location or the maximum number of redirect is reached. This patch also touches WatchedItemQueryServiceIntegrationTest to make it more robust. Without this change, UploadFromUrlTest interfered with WatchedItemQueryServiceIntegrationTest in some way, causing it to fail. Bug: T258122 Change-Id: I1de709576c02ce5b31b356751680cbd23689a3fa |
||
|---|---|---|
| .. | ||
| UploadBaseTest.php | ||
| UploadFromUrlTest.php | ||
| UploadStashTest.php | ||