New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Blueprints: Add file upload > filesize: 0 > not working #855
Comments
No, 0 does not mean unlimited in DropzoneJS which is the lib we use for the file uploader http://www.dropzonejs.com/#config-maxFilesize There seem to be no value for "unlimited" |
Strange. I'm pretty sure I used it before and it worked. (Prior the last update) Also in the documentation it says:
https://learn.getgrav.org/forms/blueprints/how-to-add-file-upload Well then, good to know. Thanks. |
I didn't check that, it might be as well be unlimited, and you're having a different issue. Going to check if I can replicate. |
You cut off the other portion of the docs :)
|
Because, it is the important part within my issue. System and PHP Settings are adjusted as I wrote (though not so clearly):
And it says in the docs: ;) |
Disregard my previous comment - |
I've just tried out a blank install of grav cms, due to some other error I got, and there those issues don't come up. So I think this thread can be closed... |
Feel free to reopen if this happens again. |
Well, the problem occurs again: However I don't get the error if I drag files in the default uploads field of the page.
|
@anthubbard I tried that snippet and it works fine to me with a 9MB file. Check the PHP limits and Grav system's "File upload limit" setting. |
Configuration -> System -> Media -> File upload limit |
Can you try setting it to 50000000? |
Hey anthubbard, |
I need to add file upload functionality in one of my pages. I have gone through grav documentation and all but i am unable to understand exactly which file i have to modify for this. I am very new to grav cms. Any help will be appreciated. |
Do you mean the upload limit? It's a PHP configuration, nothing to do with Grav. |
no..not the limit. I want to add file upload functionality in one of the pages. I tried that page yaml file as well as .md file. but my changes are not showing on UI. |
I have the maximum filesize within the settings set to 0. Within a page blueprint I added a file upload and there also set the filesize to zero (which should be unlimited, shouldn't it?). When dragging in a picture I get:
The text was updated successfully, but these errors were encountered: