-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Work in Progress] Do not download files that are too big via "From Link". #5499
Conversation
You do a lot of work instead of |
@tanghus You are mistaken. This is about the HTTP response headers for "new file from link". |
@bantu I was too fast. Your approach might be good. There must be a wrapper for this, but lets wait with that until oC7 and just keep this out of the public API :) |
@tanghus I agree this may be better for ownCloud 7. @karlitschek |
agreed. ownCloud 7 |
Could probably use \Symfony\Component\HttpFoundation\ResponseHeaderBag instead of reinventing the wheel here. |
Damn, we would have been a lot further by now if we had started on a Symfony foundation. Last time I coded PHP the only other "frameworks" I knew of, were the ones I'd coded myself :D |
Test passed. |
@bantu is this still WIP or ready for test? THX |
@DeepDiver1975 Just rebased this yesterday. Need to have a closer look again. |
Unfortunately \Symfony\Component\HttpFoundation\ResponseHeaderBag does not accept the format that we are receiving from the PHP stream framework. So reusing ResponseHeaderBag may be a bit more complicated. |
I am closing this because a similar patch has been merged. See #10290 |
@bantu remember to delete unneeded branches. |
@jancborchardt Thanks. I would like to keep it somewhere, though. Pushed to bantu now. |
Yeah, please do that on personal space. The branch list is very long and it’s difficult to judge which ones are important and which not. |
Work in Progress patch for #5398