Cannot delete an attachment from a page #1279

Closed
opened 2026-02-05 00:28:40 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @TheBigCocio on GitHub (Jul 30, 2019).

Hello,

After i upload a Attachment to a page i cannot delete it.
I get a 405 (Method not allowed) when trying and i'm Admin.

What can i do to fix this?

Originally created by @TheBigCocio on GitHub (Jul 30, 2019). Hello, After i upload a Attachment to a page i cannot delete it. I get a 405 (Method not allowed) when trying and i'm Admin. What can i do to fix this?
Author
Owner

@mrdth commented on GitHub (Nov 15, 2019):

I'm seeing the same problem using v0.27.4, Can confirm the issue doesn't affect a test install running v0.26.4

Trying to delete an attachment from a page results in a 405, even when trying as a user with a role which has permission to delete both Own / All attachements set

@mrdth commented on GitHub (Nov 15, 2019): I'm seeing the same problem using v0.27.4, Can confirm the issue doesn't affect a test install running v0.26.4 Trying to delete an attachment from a page results in a 405, even when trying as a user with a role which has permission to delete both Own / All attachements set
Author
Owner

@navvienna commented on GitHub (Sep 17, 2020):

I have the same problem running v.0.29.3 - is there a solution?

@navvienna commented on GitHub (Sep 17, 2020): I have the same problem running v.0.29.3 - is there a solution?
Author
Owner

@tomsnunes commented on GitHub (Feb 11, 2021):

I am still having this issue in v0.31.6. Any workaround available?

@tomsnunes commented on GitHub (Feb 11, 2021): I am still having this issue in v0.31.6. Any workaround available?
Author
Owner

@ssddanbrown commented on GitHub (Feb 12, 2021):

@tomsnunes The delete attachment request is one of the rare times in BookStack that a DELETE request is performed. It may be something related to that in combination with your setup that's causing issues, I've seen this before for IIS users.

Also, Check you have the APP_URL option set in the .env file. If you need further help I'll need more information about your hosting setup and ideally any error messages you're seeing in the browser development console.

@ssddanbrown commented on GitHub (Feb 12, 2021): @tomsnunes The delete attachment request is one of the rare times in BookStack that a DELETE request is performed. It may be something related to that in combination with your setup that's causing issues, I've seen this before for IIS users. Also, Check you have the APP_URL option set in the `.env` file. If you need further help I'll need more information about your hosting setup and ideally any error messages you're seeing in the browser development console.
Author
Owner

@ssddanbrown commented on GitHub (May 2, 2021):

Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one, but please provide details of your BookStack server environment to help debug the issue.

@ssddanbrown commented on GitHub (May 2, 2021): Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one, but please provide details of your BookStack server environment to help debug the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1279