LiamC

does anyone know how I can fix this? its saying no theme in use but I do have one in use and set int admin/settings None of the following templates could be found (no theme in use): http://LeftAndMain_MenuToggle.ss

KlemenP

hello, if I put this SS_Cache::set_cache_lifetime('any', 60603); in mysite/_config.php will it actually work or should I use 'default' instead? Either way if I debug it and jump around on different pages SS_Cache::get_cache_lifetime('default') always shows lifetime as 600.

Kartavya Desai

Following is my updated code for validation.

Files: Requires logging in to the Slack workspace to view/download
Untitled (PHP)
Kartavya Desai

Fields are coming right, but none of the validations are working. Can someone please help me for this?

Kartavya Desai

and these are the validation I want, but if I try to upload valid file, it is giving me "File is not a valid upload" error.

Files: Requires logging in to the Slack workspace to view/download
Untitled (PHP)
Kartavya Desai

This is my updated code now.

Files: Requires logging in to the Slack workspace to view/download
Untitled (Perl)
Kartavya Desai

@kinglozzer Can you please help me to validate above mentioned fields with FileField rather than UploadField?

kinglozzer

@Kartavya Desai It’s probably $uploadPhoto->getValidator()->setAllowedMaxFileSize('2mb');