• Upload Image Issue/Solution

    By Julian Robichaux 2 decades ago

    On the configuration document, Maximum Image Upload Size (MaxUploadSize) should probably default to a number (either 0 or something reasonable). If it's blank (which is the default) or if it's not a number, users will get the following error when trying to upload images:



    An error occured…

    HTTP Web Server: Lotus Notes Exception - Comparison operators must be supplied two values of the same data type.



    On a related note, after that is changed, the line:



    Error := @If ( FileSize > FileSizeMax ; "text_uploadmaxsizereached" ; "");



    in the Input Validation section of the UploadMaxSize field on the UploadWeb form (which is where the error above is occurring) should probably be changed to:



    Error := @If ( (FileSize > FileSizeMax) & (FileSizeMax > 0) ; "text_uploadmaxsizereached" ; "");



    Otherwise, you get an error trying to upload any image file when MaxUploadSize is set to zero.


    • Julian
    • Fixed in coming 1.1 <eom>

      By Michael Bourak 2 decades ago