Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Error when I try to upload or delete files

admin

Started by Florian Gubler 6 years ago · 1 replies · 599 views
6 years ago

For the last few weeks I have not been able to either upload new files to the "Page media" section or delete existing ones from there in the Admin Toolkit. Until recently, this worked without a problem.

I can - of course - still add or remove these files using the file-explorer on the server, directly adding or deleting the files in the file-system. However, the idea is that users can edit this content who have an account for the Grav Admin Webpage but are not authorized to connect to the server using remote desktop.

My user has the following roles: "admin.super", "admin.login" and "site.login".

The error messages are the following:

  • trying to upload a file name "test.json", the error is "Unable to upload file test.json: Bad filename". There are absolutely no dangerous characters in the filename, so I don't think that is the real problem.
  • trying to delete a file, the error is "No file found" appearing in a red snackbar. But as the file is shown in the "Page Media" section (and as I can confirm from the file-system), the file does exist.

I set the access-rights to the grav folder to "full control" for the "Users" group.
(And I am running a Windows server).

Any ideas or suggestions would be greatly appreciated.

6 years ago

Small update: This seems to happen only with json Files: If I rename my test.json to test.pdf without changing the content, it works just fine.

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 99 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 186 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 62 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 257 1 year ago