Skip to content

[Work in Progress] Do not download files that are too big via "From Link". - #5499

Closed
bantu wants to merge 1 commit into
masterfrom
from-link-no-space
Closed

bantu wants to merge 1 commit into
masterfrom
from-link-no-space

Conversation

@bantu

@bantu bantu commented Oct 23, 2013

Copy link
Copy Markdown

Work in Progress patch for #5398

@tanghus

tanghus commented Oct 23, 2013

Copy link
Copy Markdown
Contributor

You do a lot of work instead of OC::$server->getRequest()->getHeader('Content-Length'); 😉

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@bantu while you are touching that code pieces - please consider fixing #5406 as well - THX

@bantu

bantu commented Oct 23, 2013

Copy link
Copy Markdown
Author

@tanghus You are mistaken. This is about the HTTP response headers for "new file from link".

@tanghus

tanghus commented Oct 23, 2013

Copy link
Copy Markdown
Contributor

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 :)

@bantu

bantu commented Oct 23, 2013

Copy link
Copy Markdown
Author

@tanghus I agree this may be better for ownCloud 7. @karlitschek
@DeepDiver1975 Oh, sure. Thanks for the typo fixes, btw.

@karlitschek

Copy link
Copy Markdown
Contributor

agreed. ownCloud 7

@ghost ghost assigned bantu Oct 24, 2013
@bantu

bantu commented Oct 24, 2013

Copy link
Copy Markdown
Author

Could probably use \Symfony\Component\HttpFoundation\ResponseHeaderBag instead of reinventing the wheel here.

@tanghus

tanghus commented Oct 24, 2013

Copy link
Copy Markdown
Contributor

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

@ghost

ghost commented Dec 20, 2013

Copy link
Copy Markdown

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@bantu is this still WIP or ready for test? THX

@bantu

bantu commented Dec 20, 2013

Copy link
Copy Markdown
Author

@DeepDiver1975 Just rebased this yesterday. Need to have a closer look again.

@bantu

bantu commented Feb 20, 2014

Copy link
Copy Markdown
Author

This should have #7123 merged first (which is a change into the direction this needs to go refactoring wise, with possibly more to come) and the fix here should be extended to include #3614, #1198 and possibly #5398.

@bantu

bantu commented Feb 20, 2014

Copy link
Copy Markdown
Author

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.

@bantu

bantu commented Aug 8, 2014

Copy link
Copy Markdown
Author

I am closing this because a similar patch has been merged. See #10290

@bantu bantu closed this Aug 8, 2014
@jancborchardt
jancborchardt deleted the from-link-no-space branch August 8, 2014 23:42
@jancborchardt

Copy link
Copy Markdown
Contributor

@bantu remember to delete unneeded branches.

@bantu

bantu commented Aug 8, 2014

Copy link
Copy Markdown
Author

@jancborchardt Thanks. I would like to keep it somewhere, though. Pushed to bantu now.

@jancborchardt

Copy link
Copy Markdown
Contributor

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants