added ability to set the uploaddir for file uploads
1.2.6