Hi there, Does anyone know if it is possible somehow to validate files that are uploaded in a form using the formFile field (in Magnolia 5)?
The formFile field dialog does not provide a field for specifying a validator, as is the case for the formEdit field. And I guess this is for a reason.. ;-) I tried extending the formFile dialog with a validator field but it simply does not seem to run. I did implement validation of the uploaded file in the form processor Java class that we use. However this is too late to show a message back to the user as far as I know. In theory once the file has been uploaded using the formFile field you should be able to validate it inside the form because the uploaded file is available in the session as a temporary Document. I just do not know where. cheers Edgar -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=cd93964d-91ea-47ef-82ce-48444c0373ac ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
