jgonyea / grav-plugin-podcast

GravCMS plugin that creates podcast channel and podcast episode page templates along with a podcast RSS feed.
MIT License
18 stars 7 forks source link

can't upload : "Exceeded Grav configuration file size limit" #17

Closed krodelabestiole closed 6 years ago

krodelabestiole commented 6 years ago

hello I've just setup the podcast module and I'm try to upload a 190 MB audio (mp3) file.

my PHP values for _post_maxsize and _upload_maxfilesize are both set to 1024M, which I can confirm in the Info tab (1024M is 1024 MB right ?)

I've tried to set filesize in the form plugin configuration to both 1024 and 0, to no success. As well a _system.media.uploadlimit to both 0 and 8589934592 (since this is 1 GB in bits, and I could not find any info about what unit to choose).

I have added audio/* to the accepted formats for the form plugin.

I still have this error message no matter what : Exceeded Grav configuration file size limit

I really don't know where I could have a look now... Thanks for any help.

krodelabestiole commented 6 years ago

alright after some search I found the limit size to be hardcoded in a blueprint out there : https://github.com/jgonyea/grav-plugin-podcast/blob/develop/blueprints/podcast-episode.yaml

How am I supposed to change that ?

krodelabestiole commented 6 years ago

I guess it would be way simpler to just change line 41 to : filesize: 0

also there's a typo on line 72 : fileszie

and maybe it would be better to allow any audio format on line 44 : - 'audio/*'

jgonyea commented 6 years ago

Thanks for reporting these.

I'll fix the typo and update the available types.

As for the max filesize, I think I'll move that to the plugin configuration.

jgonyea commented 6 years ago

Fixed in new release.