[PR #998] [CLOSED] Update AttachmentService.php #5748

Closed
opened 2026-02-05 10:16:03 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/998
Author: @SkyAndClouds
Created: 9/3/2018
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • ebaa348 Update AttachmentService.php

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 app/Services/AttachmentService.php (+1 -0)

📄 Description

Couldn't upload some large videos (60 - 100 MB). In the logs, I saw the errors:

[Mon Sep 03 12:21:08.799485 2018] [php7:notice] [pid 101] [client IP:PORT] [2018-09-03 12:21:08] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 121655240 bytes) {"userId":1,"email":"admin@admin.com","exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 121655240 bytes) at /var/www/bookstack/app/Services/AttachmentService.php:185)"} [], referer: http://NAS_IP:PORT/books/learning-materials/page/pate-de-ficat-de-pui/edit

solved the issue by modifying /var/www/bookstack/app/Services/AttachmentService.php, by adding ini_set(‘memory_limit’,’256MB’); after use Symfony\Component\HttpFoundation\File\UploadedFile;


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/998 **Author:** [@SkyAndClouds](https://github.com/SkyAndClouds) **Created:** 9/3/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`ebaa348`](https://github.com/BookStackApp/BookStack/commit/ebaa3483023e27c1d78fe7884deb7e58d7106876) Update AttachmentService.php ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `app/Services/AttachmentService.php` (+1 -0) </details> ### 📄 Description Couldn't upload some large videos (60 - 100 MB). In the logs, I saw the errors: [Mon Sep 03 12:21:08.799485 2018] [php7:notice] [pid 101] [client IP:PORT] [2018-09-03 12:21:08] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 121655240 bytes) {"userId":1,"email":"admin@admin.com","exception":"[object] (Symfony\\\\Component\\\\Debug\\\\Exception\\\\FatalErrorException(code: 1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 121655240 bytes) at /var/www/bookstack/app/Services/AttachmentService.php:185)"} [], referer: http://NAS_IP:PORT/books/learning-materials/page/pate-de-ficat-de-pui/edit solved the issue by modifying /var/www/bookstack/app/Services/AttachmentService.php, by adding ini_set(‘memory_limit’,’256MB’); after use Symfony\Component\HttpFoundation\File\UploadedFile; --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:16:03 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5748