clonefish logo

input type=file, file upload control

inputFile

A simple file selector, like this: .

Setting the 'href', 'text' or a 'thumbnail' setting for inputFile is just for creating a clickable link to the file (it helps creating user-friendly forms with a delete file button and some image preview).

This control aborts with an error message if file upload is not allowed by php.ini (file_uploads=0).

You may use the 'binaryvalue' setting (set to 1) to get the binary file contents returned by any of the clonefish methods (getElementValue(), getValues() ) after a successful validation. Further notes: