Control file and image upload

enable file and image upload by setting allow_file_upload and allow_image_upload variables.