You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We need to store the file into flash object or it will not be available upon save later on.$flash = $this->getFlash();
if (isset($grav['user'])) {
$flash->setUrl($url)->setUser($grav['user']);
} else {
$flash->setUrl($url);
}
I am not familiar with handling sessions with grav, but a comment in #332 says a session is needed. This works with system.session.enabled = false.
Also, is this maybe the issue for #349 ?
The text was updated successfully, but these errors were encountered:
Cannot upload file if $grav['user'] is not set.
Issue is on Grav 1.6.9 and 1.6.10. These are the only two versions I tested.
Fix is to change code in https://github.com/getgrav/grav-plugin-form/blob/develop/classes/Form.php on line 641 to
This also works:
This is with the fix:
This is without the fix:
I am not familiar with handling sessions with grav, but a comment in #332 says a session is needed. This works with
system.session.enabled = false
.Also, is this maybe the issue for #349 ?
The text was updated successfully, but these errors were encountered: