splitbrain / dokuwiki-plugin-bureaucracy

Create forms and generate pages or emails from them
http://www.dokuwiki.org/plugin:bureaucracy
GNU General Public License v2.0
43 stars 47 forks source link

file upload limited in plugin but not in media manager #249

Open alimat-nz opened 6 years ago

alimat-nz commented 6 years ago

I am using a form to specify a file to be uploaded. When I submit the form I get an error message displayed saying it is larger than 2MB - it is 2.4MB. The same file uploads OK in the media manager. There only seems to be a size for email attachments in the Configuration section for the plugin. How do I get a bureaucracy form to upload a file larger than 2MB? I do not want to point users at. the media manager

tomio13 commented 6 years ago

Hi,

This e-mail is a reply to the message of alimat-nz

notifications@github.com, sent on Mon, 28 May 2018 21:58:11 -0700:

"

I am using a formt o specufy a file to be uploaded. When I submit the form I get an error message displayed saying it is larger than 2MB - it is 2.4MB. The same file uploads OK in the media manager. There only seems to be a size for email attachments in the Configuration. section for the plugin. How do I get a bureaucracy form to upload a file larger than 2MB? I do not want to point users at. the media manager

end of previous message"

This is set in the /etc/php/php.ini as upload_max_filesize = 2M.

Bests, Tomio

alimat-nz commented 6 years ago

wouldn't that also stop media manager from uploading the file.

As i said media manager can upload the same file - i would have expected php.ini to affect both ? why can one plug in upload a file but bureaucracy can not?

tomio13 commented 6 years ago

Hi,

This e-mail is a reply to the message of alimat-nz

notifications@github.com, sent on Tue, 29 May 2018 03:36:52 -0700:

"

wouldn't that also stop media manager from uploading the file.

As i said media manager can upload the same file - i would have expected php.ini to affect both ? why can one plug in upload a file but bureaucracy can not?

end of previous message"

Well, this is beyond me for now. I am still using "Frusterick Manners", and here what I can see is that the bureaucracy plugin uses the same mechanism from media.php as the MediaManager. What I cannot see is that where the MediaManager checks back for the file size error, which is done in the _validate() of the fieldfile.php in the plugin.

There is a FAQ entry on the dokuwiki website: https://www.dokuwiki.org/faq:uploadsize

And on the PHP control at: https://secure.php.net/manual/en/features.file-upload.php

I hope someone more into the internals can clarify this bit.

Bests, T.

alimat-nz commented 6 years ago

thanks - making the change to php.ini worked - but it would be good to know why there is that difference with media manager