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

Error

Started by Muut Archive 10 years ago · 2 replies · 467 views
10 years ago

Hi, I have a field in my admin for uploading files:

YAML
header.downloads:
    name: downloads
    type: list
    style: vertical
    label: Page Downloads
    fields:
      .text:
        type: text
        label: Download Button Text
        style: vertical
      .dl:
        type: file
        label: Add a file
        accept: ["image/*", '.doc', '.docx', '.xls', '.xlsx', '.pdf']
        style: vertical
        destination: '@self'
        multiple: false
        limit: 1 
        filesize: 50

But when I upload anything over about 2mb (I didn't find out the exact limit) it gives this error:

TXT
Unable to upload file filename.pdf: The uploaded file exceeds the max upload size

My php upload limit is like 200mb and I have other sites with CMS's that easily upload 50mb+ files... am I doing something wrong?

10 years ago

I had sort of an similar issue. https://github.com/getgrav/grav-plugin-admin/issues/855
I could not really track it down to a specific problem.

In the end I set up all again manually with a fresh grav 1.1.8 install. Though before I was probably overwriting the page default blueprint file in a bad way. I added a blueprint folder to the user folder and not to the theme folder.

10 years ago

@anthubbard comment on that issue @ponderboy mentioned if you are still stuck with it. I could not replicate the problem yet, but two in a row is suspicious.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1354 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4065 9 years ago
Archive · by Muut Archive, 9 years ago
1 2953 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago