Add S3 bucket support

Created on 6 October 2021, over 3 years ago
Updated 13 May 2025, 1 day ago

The \PhpOffice\PhpSpreadsheet\Reader\Xlsx uses ZipArchive class that doesn't support stream wrappers.
It's a PHP issue.
https://bugs.php.net/bug.php?id=68621

The temporary directory can be used to generate a file.
On the bach finish, the temporary file can be moved to the right destination.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine MykolaVeryha

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • πŸ‡¬πŸ‡·Greece gkffzs

    Working on a site that had #2 comment's patch applied, we faced a problem with the automatic download after the batch finished. More specifically:

    • The files were properly saved in the private directory, however the respective database entry in file_managed table was not updated and pointed to the temporary directory.
    • Thus $headers in finishBatch() were empty because the function failed to find the file via its URI and consequently it was not downloaded.

    Based on that patch, I added some code in order to update the respective database entry with the new URI (that points to private directory), along with a couple of log messages to have a better overview of the process.

  • πŸ‡¬πŸ‡·Greece gkffzs
  • Pipeline finished with Success
    1 day ago
    Total: 493s
    #496097
  • πŸ‡¬πŸ‡·Greece gkffzs
  • Pipeline finished with Success
    1 day ago
    Total: 242s
    #496119
  • πŸ‡¬πŸ‡·Greece gkffzs
Production build 0.71.5 2024