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.

Support

Page Media only accepts Images

Started by Matthew Becker 6 years ago · 6 replies · 538 views
6 years ago

Hi Everyone,

Any help would be much appreciated.

The page media section on my pages are refusing to upload any content other than images. Does anyone know what I am doing wrong here? The file types I am trying are all listed in the docs and the allowed file types in admin.

Edit: PHP limits are all set to 150M.

image|304x291

Thank you in advance!

Matt

6 years ago

At what point in time was this screenshot taken?
A file of type MP4 does show up like you posted after uploading but before saving the page. After saving the page the file will show like this in the media section:
Screenshot at Feb 24 07-14-56|279x262.

Also note that the file in not placed into the page folder until the page is saved.

6 years ago

That screenshot was before saving, but after saving the file completely disappears.

Also, nothing in the Grav logs to suggest something has failed.

6 years ago

Please check your Apache and PHP logs on the server. Maybe your PHP settings have size restrictions or a mod.security rule intercepts the upload.

6 years ago

All my PHP upload / post size settings are set to 150M.

When I drop an image into the media area I see a POST request appear in the network section of the developer tools.

When I drop an MP4 no such POST request appears.

I'll check mod.security, but I think it may be something on the front end.

6 years ago

I've added to the issue attached.

I am running the latest version of everything, including admin v1.9.12.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 11 hours ago
Support · by Anna, 3 days ago
2 60 14 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago