Form object now works with file uploads
Replace literal integers for named constants