Perl Variables for File-Upload Questions

The following reserved Perl variables are used to return information or set behaviors in questions that you create in WebAssign.

Variable

Description

$ACCEPTFILETYPE

Sets acceptable filename extensions, for example, $ACCEPTFILETYPE=['.doc','.docx'].

$FILEUPLOADMAX

Sets maximum file size in bytes, for example, $FILEUPLOADMAX=204800.

$size

Sets the width of the answer box, for example, $size=80.