-
Mike Kelly authored
In filebrowser form elements, support a 'resize images on upload' option. Make some options in artefact.file get_config_options to: - switch on resizeonupload functionality - show the user the option to enable or disable it - set the max image height and width Max image height and width are prefilled with get_config(imagemaxheight) and get_config(imagemaxwidth). Display the option beneath the file upload element, if enabled (resizeonuploadenable), and user option is set to appear (resizeonuploaduseroption). Set check box according to user preference (resizeonuploaduserdefault). Extend save_uploaded_file function to check whether the uploaded image has been resized. If it has, reset the uploadmanager filesize value before committing the file. Change-Id: I8d64b4433f7d25f63b211b9e5ebc5c44d1bc23e7 Signed-off-by: Mike Kelly <m.f.kelly@arts.ac.uk>
0b429269