Add file uploader example
Fix return type for programInput and previewInput