Details
Version info at the line 2.
I use Cloudflare R2's S3-compatible API; andβ¦
- Apache LimitRequestBody at 2147483648 (2 GiB)
- php.ini post_max_size and upload_max_filesize also both at 100MB
- memory_limit = -1
- max_input_vars =1(12 zeros)
Given that I've satisfied all the criteria @ the docs I thought it would do chunked uploads, but seems like it is notβ¦
I'm sort of suspecting R2 is at fault here but not sure if this is really the case, soβ¦
Update:
It looks like /file/upload path cannot handle big files, since it does not do a chunked upload.
For example I was able to upload this file using drag & drop:
<< uploads in editor upload form; but fails when tried via https://we.phorge.it/file/upload/Answers
So you say that using drag & drop it works. That is probably thanks to the HTML5 JavaScript that splits in chunks, so the parts are under 8MB.
Note that there is an hardcoded limit to 8MB here, that may have sense to deeply encourage the chunk logic (and discourage one single big upload):
I think that it's still safe, however, to consider the object-storage as something without limits, or, at least it should not be limited to 8MB. If this makes sense, try this dirty patch:
diff --git a/src/applications/files/engine/PhabricatorS3FileStorageEngine.php b/src/applications/files/engine/PhabricatorS3FileStorageEngine.php index 95cdfc737b..79f5404250 100644 --- a/src/applications/files/engine/PhabricatorS3FileStorageEngine.php +++ b/src/applications/files/engine/PhabricatorS3FileStorageEngine.php @@ -38,6 +38,13 @@ final class PhabricatorS3FileStorageEngine phutil_nonempty_string($region); } + /** + * S-3 object storage probably has not an hardcoded limit. + * Note that the parent class is hardcoded to 8MB. + */ + public function hasFilesizeLimit() { + return false; + } /* -( Managing File Data )------------------------------------------------- */
So you override the default and you say that your object storage should be used also for files bigger than 8MB.
But for now, you can try that dirty workaround with all the possible dark consequences.