Comments (4)
@SimonThornett Can you share a corrupt file to debug the issue?
from zipstream-php.
We have the same issue that ZipStreams from S3 contain 1 file that is too large.
task_100089_images_26.09.2023 13_46.zip
I can reliably reproduce the issue like so:
- Upload 4 images to S3
- Load each image once in the browser (they are loading as expected)
- Create a ZipStream with the 4 files, the zip file opens find and the file sizes look correct
- Create another ZipStream with the same 4 files, now you got one file that is too large
- The image can't be open in the browser anymore
We use Laravel and spatie media library, under the hood it uses league/flysystem.
from zipstream-php.
@Eddy84 Do I understand it correctly that you create two archive containing the same files in the same request / program execution?
Can you send me the working & the broken archives? Then I can compare them.
Also the code around generating the files would be useful.
Additionally the files in there would also be helpful to compare file sizes & content with the zip headers
from zipstream-php.
Closed because of inactivity. Feel free to re-open if this is still relevant.
from zipstream-php.
Related Issues (20)
- How to add file from direct download URL ?
- How to compress output while writing content? HOT 2
- Warning from fwrite HOT 9
- TODO: Remove `PHP_CS_FIXER_IGNORE_ENV` from `composer.json`
- == Major Release 3 out for testing ==
- addFromStream
- Download is not working (downloads a file called download (without any extension))
- Add file to existing archive HOT 2
- Update Docs for Flysystem 3 HOT 4
- Document default options for Zip64 & Zero Header HOT 19
- CI no space left on device HOT 4
- Deprecate all the removed/changed code changes v2 => v3 HOT 1
- DUMB question...
- Update `gitattributes` file HOT 5
- Option to disable UTF-8 encoding for Content-Disposition for KOBO? HOT 6
- Unexpected end of archive - when there are more than 4 folders deep HOT 11
- Cascading subjects coming from ZIP_VERSION_MADE_BY HOT 6
- `OperationMode::SIMULATE_STRICT` and zero-byte files HOT 3
- Creating CRC fails on 32-bit system due to too small integers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zipstream-php.