Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions lib/public/Collaboration/Reference/LinkReferenceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@
*/
class LinkReferenceProvider implements IReferenceProvider {

/* for image size and webpage header */
private const MAX_CONTENT_LENGTH = 5 * 1024 * 1024;
/**
* for image size and webpage header
* @since 29.0.0
*/
public const MAX_CONTENT_LENGTH = 5 * 1024 * 1024;

private const ALLOWED_CONTENT_TYPES = [
/**
* @since 29.0.0
*/
public const ALLOWED_CONTENT_TYPES = [
'image/png',
'image/jpg',
'image/jpeg',
Expand Down